#wordpress 2019-01-09

2019-01-09 UTC
[tantek], [eddie], [pfefferle], [Rose], jeremych_ and [jgmac1106] joined the channel
#
[jgmac1106]
@gwg many offered to help. On IP rewrite, [asuh] [cjwillcock] and I. we could use it as opportunity to develop practices around community coding
#
[jgmac1106]
I know that isn't building for your own goal and dangerously close to building for masses antipattern... But it's WordPress it's own beast
[voss], [Vincent] and cjwillcock joined the channel
#
GWG
I just wanted to have some theme options for newcomers
#
GWG
I am hoping after I set them up, there is little need for maintenance
[relapse] joined the channel
#
GWG
[jgmac1106]: I really have to document what I'm doing though.
[davidmead], [voss], [smerrill], [tantek], [grantcodes], [schmarty], [jgmac1106], dougbeal|mb1, [eddie], [pfefferle], jackjamieson, [kevinmarks] and [cleverdevil] joined the channel
#
GWG
[tantek]: I don't hate Gutenberg in theory. I hate how they've gone about doing it and I don't like the underlying design, but I will have to adapt at some point.
#
GWG
I just saw an article indicating a lot of people do not like how the project is making decisions.
#
GWG
Also, I'd like more PHP and less JS in my coding...but that's a different issue
#
[tantek]
both (community/decision-making and coding) are important issues
#
GWG
But, the idea of a block based editor and a redesign doesn't offend me.
#
GWG
And I made an effort, except for the one plugin that it wouldn't easily work for, to have my plugins work with the block editor, if not integrated into it
#
GWG
And I'll probably have to do more
#
GWG
I just really don't want to do REACT
jackjamieson, [jgmac1106] and [asuh] joined the channel
#
[asuh]
GWG: when I create a new post, let's say a Bookmark or Read Kind, and syndicate to Twitter into a new Tweet, does Syndication Links support the media container that's embedded below the Tweet content? It's the card component on the Tweet below the Tweet content that shows a photo, title and site name.
[smerrill] joined the channel
#
GWG
It doesn't do the Syndication, Bridgy does. You'd have to check the Bridgy documentation
#
GWG
The Syndication Links UI could have a native Twitter api implementation
#
[asuh]
ah, bridgy, that makes sense
#
sknebel
if you mean the preview for links, that's generated by twitter from og: tags on the site
#
[asuh]
Yes, preview for links. So I assume og: tags would need to be one of my meta tags in the `<head>` for that to work right
[eddie], chrisaldrich and [Rose] joined the channel
#
[asuh]
sknebel: This might be plugin specific but I just tested one of the plugins that inserts og: tags and it’s all specific to my local site and not the bookmarked or read site. Even if Post Kinds plugin scrapes all the correct data from the remote article or post I’m using in my local kind post, the og: tags don’t reflect any of that data
#
[asuh]
Ah, I guess the intention is for that card content to always be from my site and by going to my site someone will see the bookmark or read link I’ve used. Hmm.
#
[asuh]
I’m thinking of a use case where I want a syndicated post to include both a card with the external link I’m saving as well as a linkback to my WordPress post
#
[asuh]
For example:
#
[asuh]
This is the content of a local post
#
[asuh]
Picture of bookmarked external post
#
[asuh]
Title of bookmarked external post
#
[asuh]
Short desc of external post
#
[asuh]
linkback of external post website URL
#
sknebel
yeah, I think twitter always looks up the data from the last url in the tweet
#
[asuh]
In the above example, example.com would be my site where I created a Post Kind post and external site is the external site I’m bookmarking
#
[asuh]
Maybe what I want isn’t yet possible?
#
GWG
What can I do?
#
sknebel
you can't have the preview for your site directly link to the other page
#
[asuh]
sknebel: the example above, the preview is not for my site, only a direct link to the post I created
#
[asuh]
GWG: not sure yet, thinking about it
#
sknebel
[asuh]: ah, ok. if the tweet ends with a url that creates a card, it gets replaced with the card, so you could send content ending in the url to twitter - it shows up as a link if there isn't a card made for it
[tantek] and [voss] joined the channel
#
[asuh]
sknebel: if what you’re saying is true, then it sounds like there needs to be an array of og:url meta elements in the the head of the page, where the last element contains the link of the external URL. Is it valid to have multiple og:url meta elements?
#
[asuh]
Assuming this is possible, that makes me curious what happens with something like this:
#
[asuh]
<meta property="og:title" content="Post Title" />
#
[asuh]
<meta property="og:url" content="http://mysite.com/my-post/" />
#
[asuh]
<meta property="og:type" content="website" />
#
[asuh]
<meta property="og:url" content="http://externalsite.com/article/" />
#
[asuh]
<meta property="og:image" content="http://mysite.com.com/image.jpg" />
#
[asuh]
Would the Twitter preview card pull the og meta data of mysite.com but insert the externalsite.com instead? Or would Twitter query the external site for og meta data and use that instead?
#
sknebel
no, it decides which url to make the card for from the *tweet text*
#
sknebel
and then fetches that url
#
sknebel
and looks for og tags
#
[asuh]
if the tweet text doesn’t contain any URL links, it would just use the og: tags instead?
#
[asuh]
I know this is more #dev talk but it relates to Post Kinds storage of the bookmarked URL to be available to the og:url meta property
#
sknebel
if there isn't any urls, it can't go look for og: tags at any url
#
sknebel
twitter does not understand that your tweet is from your site
[cleverdevil] joined the channel
#
[asuh]
ok, makes sense now
[Rose] joined the channel
#
[asuh]
GWG: My thought is that Syndication links could send two links along with the Tweet text, the top being the local URL and the bottom being the bookmarked URL, which that bottom URL would then be the one with the preview card.
#
[asuh]
I’d also wager that someone people would rather people who view these tweets to always go to the local URL first and then follow through to the remote URL from their site. So it might need an option for both versions
#
[asuh]
Does that make sense?
#
[asuh]
GWG: do you have a preference in your editor for spacing/tabbing? 4 spaces = tab? I have a fork of Syndication Links that I’m seeing inconsistent formatting and if I submit a PR I want to honor your preference
[eddie] and [smerrill] joined the channel
#
GWG
asuh, sorry for the delay, at work
#
GWG
But I use WordPress coding standards
#
GWG
But I am indent challenged
#
[asuh]
ok, it says use tabs, which are generally four spaces so I’ll use that
#
GWG
pfefferle makes fun of my formatting all the time
#
GWG
Good natured fun
#
[asuh]
I can recommend including an .editorconfig file for help, if you editor supports this. Some require a plugin.
#
GWG
I write everything in vim
#
GWG
I'm in for the night now
[smerrill] and [jgmac1106] joined the channel
#
[jgmac1106]
@gwg "I really have to document what I'm doing though." This is why you have a blog .open new note, record in situ, when done, write post the notes will help. Everything will be captured plus you never have to worry about "what will I write about" You just do you and jot some thoughts as you go
#
GWG
I know. Sometimes I am just focused
#
GWG
jgmac1106, nice to have you back
[cleverdevil] and [asuh] joined the channel
#
[asuh]
Uh oh, Dreamhost is forcing some of my sites to upgrade to 5 now
#
GWG
Classic Editor?
#
[asuh]
luckily I stopped the auto-update of the ones I regularly work on
#
[asuh]
but that’s always an option, yes
j12t, chrisaldrich and [grantcodes] joined the channel
#
[grantcodes]
Is anyone in here running a site with gutenberg alignment support and good microformats?
tbbrown and [tantek] joined the channel