#wordpress 2018-05-22

2018-05-22 UTC
tantek_ and tantek joined the channel
#
jgmac1106
so [gwg] will have to decmpress and see about different post-kinds and twitter habits but it seems the best functionality (except images those always work) is to keep everything in the title if you know you will be under 280 characters. links, @mentions everything
#
jgmac1106
as soon as you add any body it gets truncated and only title displayes
[jgmac1106] joined the channel
#
jgmac1106
[tantek] just went to see if I have ever gotten a spammy webmention, didn’t find any just some real ones
#
jgmac1106
best part is four of them were from me
[jgarber], [kevinmarks] and tantek joined the channel
#
Ruxton
Finally got indieauth behaving on my blog again - https://github.com/indieweb/wordpress-indieauth/pull/56
#
Loqi
[Ruxton] #56 Update functions.php
#
GWG
Sorry about that.
#
[pfefferle]
good morning
[pfefferle] joined the channel
#
Loqi
morning!
jeremycherfas and sherab joined the channel
#
jgmac1106
good morning all
#
jgmac1106
so after last nights twitter session wonering how folks feel about a status post-kind in general. It seems the best way to syndicate to twitter (as a natural tweet as possible) is put all 280 characters into the title, or you ignore the title all together and get an ugly permalink
#
sknebel
what do you mean by "ugly permalink"?
[jgmac1106] joined the channel
#
[jgmac1106]
No title equals numerical string: https://jgregorymcverry.com/2770-2/
#
Loqi
[Greg McVerry] No #IndieWeb WordPress work for me on Day 11. Classes start today. I will tack another day on the end. Yesterday I did get to play with a lot of the post-kind/bridgy/Twitter functionality.
#
[jgmac1106]
but on post kind page titles do not display for notes so then I am missing all the context on my site: https://jgregorymcverry.com/kind/note/
#
sknebel
the turning into link shouldn't be affected by title vs content
#
sknebel
I wonder if the post kinds plugin could set the title internally for note-like post kinds, so you get your nice slugs
#
jgmac1106
Known handles this in interesting way. It has a status post_kind and then if you do an article post_kind everything gets included until yiu hit charcater max and then you get truncated link
#
jgmac1106
yeah [sknebel] as soon as you add a title that is all Bridgy will publish to Twitter, the rest of your message goes in yoru body and you get a link. Any url in hte body must be marked up for a link to work on twitter
#
jgmac1106
I need to go back through and look at everything from yesterday but I started doing this: https://docs.google.com/spreadsheets/d/19l28iCNAcMiwL2Tpko0GhiLVAVyl9DPltNS8ZvumwoE/edit?usp=sharing Grnated its just for one theme.
#
GWG
It's not that simple, but it should be simpler
#
[jgmac1106]
[gwg] Totally understand, I just need to know what happens when so I can explain it to others
#
jgmac1106
I may end up in a hybrid place again where I do all my tweeting from Known but still keep all my new post kinds and use syndicate those to Twitter as needed
#
sknebel
hm, I never noticed links in the body needed to be marked up, but I guess I never used bridgy in a case where it came up
#
sknebel
notes in indieweb terminology shouldn't have titles (or rather, they are marked up with title being identical to the content), otherwise they'd be articles
#
sknebel
of course the question is how it is represented in wordpress: as content that also gets marked up as the title in the theme, or as title
#
jgmac1106
thus my thinking around a status post_kind that is nothing but title (well you could add body as option if you want a photo)
#
GWG
Bridgy Publish relies on good mf2 which few people have on WordPress
#
sknebel
a status should be a note IMHO, that's *the* example of what a note is
#
jgmac1106
yes but in WordPress>Bridgy>Twitter the title plays more nice than a note with no title
#
jgmac1106
though I get a ton of blank entries on https://jgregorymcverry.com/kind/note/
#
jgmac1106
but I can probably hack at the theme when I get free time
#
jgmac1106
but I am an edge case I doubt many are tyring to POSSE 50-60 Tweets an hour
#
sknebel
is it only the permalink that's not so nice? the content shouldn't be different if the microformats are correct in the theme
#
sknebel
(of course, in the end it counts that it works, but I'd be curious what exactly causes the problems)
#
jgmac1106
[sknebl] few things: A: I know this is a mf2 but compare a jetpack syndicated tweet to bridgy, I need to do that B: It needs to be fast adding a bunch of links to a note takes too long for twitter chats C: numerical permalinks look weird when syndicating to places likeLinkedIn as well as Twitter D: using just the title for a Twitter syndication works great but I need to hack at the theme so I don’t have a bunch of bla
#
GWG
jgmac1106: Did you outline somewhere what you want it to look like exactly?
#
jgmac1106
that is pin D draw no conclusion from emoji
#
jgmac1106
[gwg] starting on the gDoc, once I run through every possible use case I think about what differences could be
#
GWG
I meant for a simple note post.
#
GWG
Note being the equivalent of the status you mentioned.
#
jgmac1106
Have to head to campus , but yeah I could draw that up later today
#
GWG
You put your note into the content box, and you expect that exact content to appear on Twitter. And instead you get...
#
GWG
That is what I'm trying to interpret
#
sknebel
I just tried bridgy preview with a test where I put a naked url in e-content and it gets linked properly
#
sknebel
GWG I see on your site you don't have notes marked up with p-name, have you had any issues with that?
#
GWG
sknebel: I don't use Bridgy Publish.
#
sknebel
in general
#
GWG
I wrote a plugin with the intention of switching over, but...
#
GWG
sknebel: Should I have?
#
sknebel
I guess most things fall back to content when there is no name
#
GWG
I suppose I could add in the p-name if it is a note.
#
sknebel
It's in the examples on /note and I always had in the back of my head that checking name==content was how you identified a note. but again, not sure if it matters in practice
#
GWG
"If the post has no "name" property
#
GWG
Then it is a note post."
#
GWG
  or has a "name" property with an empty string value (or no value)
#
GWG
Further discussion required
#
sknebel
ok, so that's a valid note too according to that algorithm
#
sknebel
good to know
#
sknebel
(shouldn't matter for bridgy, since it just checks properties in order until it finds one, but I was curious)
#
jgmac1106
[gwg] I think it might be related to another issue I found and just reodering p-name and e-content
#
jgmac1106
<p class="p-name e-content entry-content"> I think would be correct
#
[jgmac1106]
then on the article the title gets p-name and the body gets e-content entry-content, Will try to write it up after classes
#
[jgmac1106]
its only like five of us now but I wonder if edvenutually we need a WP-DEV channel and leave this space for WordPress onboarding, not issue now, but will be a good problem to have
#
sknebel
the order of classes on the same element doesn't matter
#
jgmac1106
[sknebel] There goes my theory
#
jgmac1106
<h1 class="entry-title p-name"> is the title markup for a note post-kind
#
jgmac1106
with title
#
jgmac1106
And with no title the header title is blank and the body markup is <div class="entry-content e-content">No #IndieWeb WordPress work for me on Day 11. Classes start today. I will tack another day on the end. Yesterday I did get to play with a lot of the post-kind/bridgy/Twitter functionality.</div>
#
jgmac1106
I don’t know for sure but I think Bridgy is looking for p-name but that is speculation
#
sknebel
it does, it's docs explain fairly well what it does
#
sknebel
I might have misunderstood what you meant by "reorder"
#
sknebel
yes, in the second example one could turn the <div class="entry-content e-content"> into <div class="entry-content e-content p-name">
#
sknebel
but it should work without it too, since bridgy looks for content too
#
jgmac1106
Bridgy works fine, Iam the one breaking the rules
#
jgmac1106
I need to turn on jetpack and try a few syndication examples but I thought jetpack stripped mf2 but that could be heresay
#
jgmac1106
I will take [gwg] idea and draw up and write the markup of how a “status” update could work will try to stay in the codex of a npte post kind
#
jgmac1106
so the archives are checking for <header class="page-header"> for the title I wonder if using function the_title( $before = '', $after = '', $echo = true ) {
#
jgmac1106
$title = get_the_title();…would be better. technically thte title is not the page header. The page has a different header
#
jgmac1106
oops sorry
#
GWG
You need a functional, not technical approach
#
jgmac1106
[gwg] I am also poking around way above my level of knowledge. Though it was fun to discover post kinds use the archive feature
#
jgmac1106
just not used to seeing a page with so many different header elements
#
GWG
I have tried to integrate where I can
#
GWG
When you say archive, you mean /kind/note ?
#
[jgmac1106]
Yeah the /kind/note uses the archive.php template
#
[jgmac1106]
I had to leave but I may just fool around with your functions there
#
GWG
Try /kind/note,article which also works
#
Ruxton
fires his guns and round-house kicks instagram into submission
#
Loqi
[Ruxton] #65 Fetch more instagram photos
#
Ruxton
Now i can backfill the last few weeks that never got through
#
aaronpk
Does that actually work well? The problem I have right now is each photo might take another http request or two to fetch location or person information
#
aaronpk
so I wasn't planning on adding more to the dashboard until I made it handle each photo separately instead of all in one request
#
Ruxton
same problem, just bigger feed.. there's potentially more info in the feed I'm ignoring
#
Ruxton
and if that's the case, then your problem will go away, because you can fetch from 0->ohmigodtheyblockingme
#
Ruxton
I got 3 years worth of my feed´ before I had to cool down
#
Ruxton
I generally don't tag locations, so it's hard to tell
#
Ruxton
has is_video field, but no video URL's
#
aaronpk
Location and person tags are what slow it down
#
Ruxton
you can fetch them in JSON form if that helps?
#
aaronpk
I do, it's just an http request
#
aaronpk
Try doing 20 http requests while the user is looking at a spinner and it doesn't go well
#
Ruxton
20 cached is ok, 20 uncached is slowish
[Natris1979], [eddie], tbbrown and [Vanessa] joined the channel
#
[Vanessa]
I think I've found my next little tweak to work on. I saw somewhere in the SemPress theme that if there is no post title, it adds a number. That's not what I want. I have code to remove that title for the RSS feed, which is good. I would need something similar for a JSON feed. However, I think I would like to override that code and have it not add a title to a status. I'm assuming it ought to be possible to add something to my child them
#
[Vanessa]
If anyone knows that I'm trying to do something impossible, do let me know, so I don't drive myself mad. 😀
#
[Vanessa]
Not that I have the first idea about php, but maybe it's a way to learn...
#
Ruxton
That's actually wordpress' titling causing the post ID to display when there's not title
#
Ruxton
If you copy entry-header.php from sempress into your chidl theme and then remove the titles, it'll be done.. but you should probably be a bit more smart than that
#
Ruxton
eg. check the post kind, and display title if it should have one
#
[Vanessa]
Yes, that's what I want to do - have the title display except for certain post types. Ok, thanks, something I will look into further, along the lines you mention.
[Natris1979], dougbeal|mb1, [tantek], tantek and [jgmac1106] joined the channel
#
[jgmac1106]
@ruxton that would mean somebody though would need to know where to find the wiki page about post-kinds and then follow those rules. I won't follow those rules as posting just a title with no body on a note or reply actually performs way better on Twitter based on my current theme configuration
[kevinmarks] joined the channel
#
jgmac1106
actually looking for the link that describes all the post-kinds and how they default to note if title is present. Just working on this still as I post https://docs.google.com/spreadsheets/d/19l28iCNAcMiwL2Tpko0GhiLVAVyl9DPltNS8ZvumwoE/edit?usp=sharing
tantek_, ben_thatmustbeme, tantek and [manton] joined the channel