#wordpress 2021-05-25

2021-05-25 UTC
jeremycherfas and easrng joined the channel
#
Ruxton
just saw this online event in WP dashboard - https://www.meetup.com/learn-wordpress-discussions/events/278186692/ creating and registering block patterns, might be useful for a few people
[KevinMarks] joined the channel
#
Meatwad[m]
ty for the link, wish it was just a paper not an event
#
Meatwad[m]
cannot think of any reason why that needs to be an event
[chee], tweet[m], justBull, [KevinMarks], wagle, ben_thatmustbeme, Oclair, hey, shrysr_, GWG, Kaja, beko, jeremycherfas, Meatwad[m], globbot, reed, pauho[m] and sergiotarxz[m] joined the channel
#
[chee]
i'm curious why the Wordpress post kinds plugin implements post kinds from scratch rather than building on top of post formats with `register_post_type`? i'm trying to learn the codebase so i can look into doing some work on it
chee joined the channel
#
GWG
[chee]: Post Kinds doesn't use register_post_type
#
GWG
Post Formats is a WordPress taxonomy, but not extensible
#
GWG
Post Kinds is a drop in replacement
#
GWG
If formats was extensible, I probably would have extended it instead of replacing
#
GWG
Post types in WordPress are not the same thing
#
[chee]
oh, i see! i thought `register_post_type` was a way of extending post formats. but it still only allows you to use the pre-set post formats
#
[chee]
but i see now the documentation was only explaining how to make a post type advertise support for a format
#
[chee]
GWG++ thank you for your patience
#
Loqi
GWG has 28 karma in this channel over the last year (123 in all channels)
#
GWG
register_post_type is for custom post types
#
GWG
The way I decided to represent it is that WordPress post types represent top level Microformats
#
GWG
So the post post type is h-entry.
#
GWG
Indieweb post types...called kinds in WordPress solely due to name collisions, are derived from the properties used. The setting in the interface just tells it which properties to use in the various fields
#
GWG
If it comes via Micropub, for example, it uses post type discovery...the deriving of post type from supplied properties to figure it out
#
GWG
The taxonomy also allows the archive page generation
#
[chee]
this is excellent, thank you for this information
#
[chee]
i'm a javascript programmer in my day job, by the way, and would be very interested in helping bring post kinds to gutenberg
#
GWG
I wouldn't object in theory to learning more JavaScript... just haven't figured out the best design for adapting it to blocks.
#
GWG
An earlier step is probably to implement the different post kinds as a schema
#
GWG
Essentially document the properties utilized in each one, so they could be rendered...I sort of started that.
#
GWG
Does that make sense?
[chee] joined the channel
#
[chee]
yes! that does make sense
[KevinMarks], [snarfed], gRegorLove and PooPSGTech joined the channel
#
PooPSGTech
no one is on this site chat rooms, or are they?
[tantek], ben_thatmustbeme, Oclair and [tw2113_Slack_] joined the channel
#
[tw2113_Slack_]
this room is fairly active
[snarfed], [chee], [aciccarello], [jacky], justBull and [tw2113_Slack_] joined the channel