#wordpress 2018-06-02

2018-06-02 UTC
[chrisaldrich] joined the channel
#
jgmac1106
I really don’t like the word generations. BTW
#
GWG
I never use it, although I have no objection
#
jgmac1106
I know and I am mixing up context. i just think of generations of static and chronological, not different groups of people with different goals and roles
#
jgmac1106
willing to accept it and use it no problem, just feels weird
#
jgmac1106
[gwg] if a theme developer had mf2 set do you think they should try and do post-kinds natively or just use plugin?
#
GWG
I am biased.
#
GWG
I think they should integrate the plugin into the theme
#
jgmac1106
I agree
#
jgmac1106
you mean recommend on install that people add post-kinds or just have post kinds native like you do in 2016?
#
jgmac1106
these hypens are killing me, just cant remember where they go
#
jgmac1106
[gwg] [chrisaldrich] pointed me to your change log for the theme, that will be a super useflul resource for theme developers [chrisaldrich] shared it with me
#
jgmac1106
[gwg] just found this https://github.com/dshanske/_s using the Automatic_s theme as a starter guide for Theme Developers is smart.
#
GWG
I update it regularly
#
jgmac1106
sorry for the confusion, the plug-in or -s theme?
#
jgmac1106
probably both, but just want to know if you are saying use the post-kind plug-in or try to add the posts-kinds to your theme
#
GWG
The _s fork
#
GWG
I would say you should integrate the plugin into your theme, but again, biased
[chrisaldrich] joined the channel
#
jgmac1106
okay collecting all the primary sources so I can think about what a WordPress Theme developer guide page should look like
#
jgmac1106
when you say, “integrate the plugin into your theme” do you mean the theme would give a warning message like “You need to install the post-kind plug-in” or if I install the theme post-kinds will just be there…what I make is going to need serious massaging to get words right
#
GWG
I prefer the latter
#
jgmac1106
okay, then we will put that in the guide…and then slowly develop the how, but that is so different per theme…and then Gutenberg
#
jgmac1106
wowza, I get the I am on wordpress.com how do I do this question a lot? Automatic is getting away with charging $25.00 a month for full WordPress experience?
#
www.boffosocko.com
edited /WordPress/Themes (+312) "/* Themes Supporting Microformats */ highlighted the commit history of 2016 fork for Theme developers"
(view diff)
[jgmac1106] and dougbeal|mb1 joined the channel
#
jgmac1106
took a stab at starting the page for theme developers: https://indieweb.org/User:Jgregorymcverry.com
tantek and [kevinmarks] joined the channel
#
jgmac1106
[gwg] Why not use the native custom post types to make post-kinds? What breaks?
#
GWG
jgmac1106: Post Kinds was modeled on Post Formats
#
jgmac1106
Intereseting WP suggests any custom pst type shoudl be a plug-in or a must have plug in
#
GWG
How so?
#
jgmac1106
“In order to avoid breaking a site on theme switching, try to define custom post types as a plugin, or, better as a Must Use Plugins. This way you won't force users into using a certain theme. “ from https://codex.wordpress.org/Post_Types
#
jgmac1106
I am just thinking that moving forward if we made a post type template for each of the current post-kind that would better support WP as theme developers could just go and grab them , or the indiweb post-type plug-in that replaces post-kinds
#
jgmac1106
better chance at more contributors as well
#
GWG
jgmac1106: Post Kinds supports custom templating inside a theme.
#
GWG
If you want to make a plugin that uses custom post types, that's fine. I am not dissatisfied with using taxonomies
#
jgmac1106
I might just want to understand your reasoning for not doing so, you know better than me
#
GWG
jgmac1106: There are differing opinions
#
GWG
First, taxonomies or post types, they shouldn't be in the theme.
#
GWG
They should be in a plugin
#
GWG
So multiple themes can use them
#
jgmac1106
so what is the reason behind your opinion, yes there i am agreeing
#
GWG
In either case, a theme can create a custom rendering.
#
GWG
I think of post types as a root mf2 property
#
GWG
So, the post post type is h-entry
#
GWG
If I ever did an h-event or h-review, I might go for a custom post type
#
jgmac1106
okay starting to understand all post types are h-entry and then post-kinds is a taxonomy
#
GWG
I only consider the 'post' post type to be h-entry
#
GWG
But again, that's how I see it
#
GWG
Users are h-card
#
jgmac1106
yes but isn’t the markup of each post-type(kind) an h-entry with varying properties in different places like: https://indieweb.org/bookmark
#
GWG
Yes, but those aren't top-level properties
#
jgmac1106
Doesn’t matter i would have no idea how to get the functions listed here to render the correct html https://generatewp.com
#
jgmac1106
for different post-types
#
jgmac1106
yes the h-entry is the root as you said and you are considering the properties a kind of taxonomy? Or do you mena specifically how WordPress handles taxonomies
#
jgmac1106
May have to put project Drupal on hold and see if I can make a post-type plugin over next two weeks
#
GWG
How WordPress handles taxonomies
#
GWG
jgmac1106: Post Kinds, by the way, is templatable.
#
jgmac1106
I will look at it
#
GWG
You can copy any file in the 'views' directory into a file in your theme called 'kind_views' and it will override presentation
#
jgmac1106
that is cool didn’t know it
#
GWG
So, you can control the presentation completely
#
GWG
miklb does that
[xavierroy] joined the channel
#
[xavierroy]
[dshanske] is your indieweb-2016 the only theme that supports post kinds?
#
GWG
[xavierroy]: Officially
#
GWG
The one I just linked to does, which is miklb's, but I'm not sure if it is fully fleshed out
#
GWG
But any theme can.
#
GWG
To change over a theme to support it natively is only about 5 lines
#
[xavierroy]
is there a gist that i can copy to ?
#
GWG
[xavierroy]: I don't think I ever made one.
#
GWG
But I could give you some information
#
[xavierroy]
thank you
#
[xavierroy]
I think i may be having some problems with the simple location plugin.. the p-longitude value is never created... instead i get 2 p-latitude values
#
GWG
[xavierroy]: Open an issue on that. I will look after I finish with Semantic Linkbacks
#
GWG
Re custom theming, you remove the content hook and then call the template directory
#
GWG
directly
#
jgmac1106
well off to start the day of baseball joys
#
GWG
Looks like my mistake there
#
sknebel
pr submitted
#
jgmac1106
morning [sknebel] enjoy you day. I am off to conquer world of baseball instead of blogging. I suck at both
#
sknebel
fighting wordpress doesn't mean "suck at blogging" ;)
#
jgmac1106
yeah but watch me swing a bat and you know I am write at “suck at baseball” my kids can only be good at sports because regression to the mean is a thing
#
jgmac1106
and homophones looks like I suck at those as well
#
[xavierroy]
i just finished adding my latest binge watches 📺 to my site...
#
GWG
I'm trying to cache gravatars
#
jgmac1106
Iam just starting a new genre I call IndieWeb poetry: https://jgregorymcverry.com/3102-2/
#
jgmac1106
[gwg] what is best practice with photo post kind. Cuirrently I upload the media and grab the url and then put that in the response box. Does adding photo to body do this automatically in your theme?
#
GWG
No.
#
GWG
On my list to add attachment support
#
jgmac1106
okay so I am doing it correct, thx.
#
GWG
If you don't put anything in the response box, it tries to find a featured image or a single image in the content
#
jgmac1106
okay what happens if you just use featured image on a photo post kind?
#
jgmac1106
doues that get the featured property or the u-photo property?
#
GWG
They are two different things
#
jgmac1106
yes just wondering what would happen when a:>I choose a photo post kind and then b: just add a featured image
#
GWG
Well, featured is not a featured image, it is any featured content.
#
GWG
But, if you do that, then my code will display it
#
jgmac1106
I know that is wrong but what happens to th mf2, a curiosity, understandable if you don’t know
#
GWG
It uses the featured image as one of the search options for the photo
#
jgmac1106
Just trying to think of every path a user could logically take
#
jgmac1106
even they are wrong
#
GWG
I just finished adding some caching code for gravatars to Semantic Linkbacks in the event we find an email address but not a photo in their h-card
#
GWG
Wonder if that is overkill
tantek and DavidWolfpaw joined the channel
#
DavidWolfpaw
Hey, sorry to jump into this late. New to this chat. Thanks for some of the feedback from https://chat.indieweb.org/wordpress/2018-06-01#t1527886682806700
#
DavidWolfpaw
To clarify what I'm looking for: a jumping off point of test data to import into a dev site specifically for theme and plugin dev. As an example, there are some WP imports like http://wptest.io/ that can be used for general and edge case testing.
#
DavidWolfpaw
I only have a few webmentions that've made it to my site so far, but I'd like to get some real world data, or a facsimile at least.
#
DavidWolfpaw
I've been reading through the wiki and still have a bit of work for personal setup to do, but want to jump in to contribute help if possible while I get up to speed and with the help that I've gotten so far.
#
GWG
Greetings
[snarfed] joined the channel
#
GWG
I'm preparing a PR to merge another of my plugins into Semantic Linkbacks. The plugin that adds info about webmentions to the comment notification/moderation emails.
[jgmac1106] and chimo_ joined the channel
#
GWG
jgmac1106: Can you think of any scenario where you might want to manually resend a comment notification email?
[jeremycherfas] joined the channel
#
[jeremycherfas]
I may be wrong about this, because I have never done it myself, but I believe you can run a version of webmention.rocks locally. Failing that, you could open a tunnel to your local WP and send webmention.rocks there.
aaronpk and Loqi joined the channel
#
jgmac1106
[gwg] Not sure I understand. I never want more email, but do you mean to someone else commenting on my blog? Do they get email notification? I get them from Bridgy with Known but not WordPress, but I probably turned off email notifactions along time ago
#
GWG
jgmac1106: It was annoying me that the WordPress Comment Notification emails weren't webmention aware
#
jgmac1106
I do get them from Bridgy on Known, but I was a convoy user
#
jgmac1106
mainly bc that was only way to pay for Known
#
GWG
To test the Webmention enhancements, I built a feature to select a comment and manually resend the email
#
GWG
I'm wondering if anyone would ever want the thing for common use
#
jgmac1106
Many people like email notificatiosn of comments, I am just not one them. toggle please
#
GWG
jgmac1106: Toggle what? It's a WordPress feature
#
GWG
Under Settings->Discussion - Email me whenever anyone posts a comment
#
GWG
I have that on, and was annoyed it didn't show me webmentions properly.
#
GWG
If you turned it off, you'd never get my enhanced emails
#
GWG
I also hooked into phone notifications in two plugins.
#
GWG
jgmac1106: I also added an extra default avatar
#
GWG
Now is the hard part
#
GWG
Waiting for pfefferle to review it
#
GWG
Make that 4 PRs for pfefferle
[kevinmarks] joined the channel