#wordpress 2017-07-06

2017-07-06 UTC
#
ben_thatmustbeme
GWG you said you use something jf2-like right?
[kevinmarks] joined the channel
#
ben_thatmustbeme
Want to check it against validator.jf2.rocks?
#
GWG
Yes, flattened mf2, similar to x-ray and jf2
#
ben_thatmustbeme
Curious if it actually validates as jf2 though
ricmac_, billbennettnz and [miklb] joined the channel
#
GWG
ben_thatmustbeme, how would I know
ricmac_ joined the channel
#
ben_thatmustbeme
GWG paste an example in at validator.jf2.rocks
[cleverdevil] joined the channel
#
GWG
Oh. Will do
ricmac_, tantek, davidmead, [miklb], prtksxna, ricmac, tboy, [renem], ben_thatmustbeme, Loqi and [davidmead] joined the channel
#
[miklb]
So I haven’t quite figured out where the best place to put the code to have a checkbox in the add media screen to add `u-photo` or `u-featured`. I was thinking the indieweb plugin, then the mf2 plugin, but after some of the discussions, neither seems like a appropriate place. Maybe just share the gist for anyone to add to their own theme/plugin?
ricmac joined the channel
#
tantek
[miklb]: they're such different things
ricmac and [miklb] joined the channel
#
[miklb]
what’s different things tantek?
#
tantek
the use cases
#
tantek
asking a user u-photo vs u-featured is only going to be confusing -
#
[miklb]
use cases of what? the two classes?
#
tantek
it's more like, hey is this a photo post?
#
tantek
or are you just decorating this blog post?
#
[miklb]
I didn’t say that’s what the UI was going to be, I just said it’s going to be a checkbox to allow someone to add the class without having to edit the post.
#
[miklb]
I fully understand the difference between the classes.
#
[miklb]
The question I have is, is there an appropriate plugin in the ecosystem to add the feature to?
#
[miklb]
It’s a pretty simple feature, but something that confuses new users. “Why didn’t my photo POSSE to FB?”
#
tantek
ideally there would be no checkbox, and the plugin could tell if the user was creating a photo post or an article
#
[miklb]
I give up.
ricmac joined the channel
#
tantek
miklb, which plugin adds the u-photo or u-featured into the markup?
ricmac_ and [miklb] joined the channel
#
[miklb]
There isn't one.
#
GWG
[miklb]: u-featured could probably be added to any post_thumbnail, the term for a featured image in WordPress. Microformats 2 plugin idea
#
[miklb]
GWG my thinking there was what if someone isn’t using post-kinds or post-formats, how do they add u-photo then? What if someone wants to use the WP featured image but that be the primary content still? Maybe I am trying to oversimplify by giving the user a radio button to choose photo/featured/none when they attach the image.
#
[miklb]
over simplify or over complicate. I’m not sure anymore.
ricmac_, tantek and billbennettnz joined the channel
#
GWG
miklb. so much to do, so little time
#
tantek
GWG++
#
Loqi
gwg has 7 karma in this channel (249 overall)
#
GWG
tantek, my dreams far exceed my reach
#
tantek
same! :)
#
tantek
dream big my friend
#
GWG
I keep jumping from thing to thing
tantek and ricmac_ joined the channel
#
[miklb]
I have the code, just wasn’t sure if the mf2 plugin would be the best place, since it could be useful for someone using a theme that has mf2 baked in. But I guess a theme could over ride it or copy the function.
[miklb] joined the channel
#
[miklb]
Comes down I guess to the decision to keep all of the plugins separate, inevitably, there’s going to be either overlap or someone could miss out on a feature.