#wordpress 2018-01-20

2018-01-20 UTC
[kevinmarks], [cleverdevil], [snarfed], [jeremycherfas] and drkokandy joined the channel
#
petermolnar
ah, object caches in wordpress, that's a whole little pocket plane of hell
#
petermolnar
do multisite setups still require the sunrise plugin to handle separate domain names per site?
#
petermolnar
wait, no, that was the wordpress-mu-domain-mapping plugin
#
petermolnar
eh, need more coffee, they were the same thing
#
petermolnar
a feature one would expect from a multisite setup to be in the core
[kevinmarks], saas0128, [tantek], [jeremycherfas], raretrack and gRegorLove joined the channel
#
raretrack
hi all, trying to POSSE a photo from WP to micro.blog Photo showing twice, but when I e
#
raretrack
remove the photo from the WP post and set a featured image it shows once in WP but not at all in micro.blog - any tips please? https://raretrack.uk/2018/01/181/
#
Loqi
[raretrack] Cambridge Cambridge Wondering how photos POSSE from WordPress to Micro.blog, and whether I’m doing it properly. So here’s a good backstreet pub in Cambridge. I had lunch and a nice couple of pints of real ale in here yesterday. https://raretrack.uk/wp-content/uploads/2018/01/20180119_RF_0009-588x1024.jpg
#
GWG
raretrack: Don't put it in the post body, only as the featured image
#
Zegnat
Actually, featured images might not show up at all? It’ll have to be a u-photo probably. And then not within e-content.
#
GWG
If you do featured images, Post Kinds embeds it.
#
raretrack
i've edited this to be featured image only, post kind set to photo, micro.blog post POSSEs Ok but doesn't show photo
#
GWG
I wonder if manton's code doesn't recognize it
#
Zegnat
Is a featured image .u-featured or .u-photo, GWG? /featured seems to be for link preview / thumbnail and that sort of thing. So m.b may not pick those up for photo posts.
#
Zegnat
featured is also not used in Post Type Discovery.
#
GWG
It's a u-photo in this case, because I'm using it to define a photo property
#
raretrack
interesting, looks like currently i can only have two photos or none!
[jgarber], [schmarty] and Jonjon1 joined the channel
#
GWG
Just don't set the featured image, I think
#
GWG
I have to go look, because I accepted a PR on that and can't remember where I left it
[schmarty] and [miklb] joined the channel
#
[miklb]
micro.blog doesn’t pick up featured images. They need to be in the html/feed so need a plugin to insert it
#
[miklb]
micro.blog doesn’t look at u-photo
#
[miklb]
good morning all
#
raretrack
thanks miklb, i've removed the featured image, just a standard in-post image now. Still got the same photo twice in WP, which micro.blog is relaying OK (twice too!)
#
[miklb]
now that is weird
#
[miklb]
https://gist.github.com/miklb/e75c5022b18de7c74a1b4912ade2bd71 is what I’m using to add the featured image to my feed
#
raretrack
sure is. post preview shows the photo once, but when posted it duplicates.
kingkool68 joined the channel
#
[miklb]
have a link?
#
Loqi
[raretrack] Cambridge Cambridge Wondering how photos POSSE from WordPress to Micro.blog, and whether I’m doing it properly. So here’s a good backstreet pub in Cambridge. I had lunch and a nice couple of pints of real ale in here yesterday. https://raretrack.uk/wp-content/uploads/2018/01/20180119_RF_0009-588x1024.jpg
#
[miklb]
hmm. Do you have any kind of image gallery plugin? The larger image is wrapped in a class that suggests something related to gallery is involved
#
raretrack
no i dont have anything like that
#
[miklb]
raretrack and you’re not adding the image as a gallery, just inserting a single image?
#
raretrack
i uploaded it to my media library and then used 'add media' to get it into the post
#
[miklb]
ah. What happens if you `add media` first and upload directly to the post? (which will still add it to your library)
#
[miklb]
s/upload/insert/
#
raretrack
just tried that with a different photo - has the same result
#
raretrack
does seem like it might be something in my wp setup though, perhaps?
#
[miklb]
what does the code look like when you switch from visual editor to the raw markup? I have visual editor disabled and work with markdown/pure HTML so I don’t recall how the visual editor handles the attachment.
#
raretrack
ah, this may help. when i change the post-kind from photo to status it works properly (just one photo)
#
[miklb]
that is weird. photo-kind is inserting the attachment.
#
GWG
[miklb]: It is supposed to. But file an issue. I think I had the idea of checking content to avoid duplication
#
GWG
Sorry
[joe] joined the channel
#
[miklb]
I vaguely remember when you created that template.
tantek joined the channel
#
raretrack
file an issue on the post-kinds plugin support page?
#
GWG
Always. It is my brain for these things
#
raretrack
ah ok, will do. i'll do it tomorrow as just about to leave to get the train to london (seeing the lumiere festival).
gRegorLove_ and [kingkool68] joined the channel
#
[kingkool68]
@cwg How do you fetch the weather data? Do you use DarkSky https://darksky.net/dev/docs#time-machine-request
#
GWG
Right now, OpenWeatherMap, but adding Weather Underground and Dark Sky is planned.
#
GWG
I built it to allow substitution of any provider.
chrisaldrich, [mattgriffin], [kevinmarks], gRegorLove, [eddie], [tantek], [jgarber], aaronpk_, [cleverdevil], jonathanprozzi, [kingkool68], [miklb], [colinwalker] and khurtwilliams joined the channel