#wordpress 2019-01-24

2019-01-24 UTC
[jgmac1106], [tantek], [asuh] and jgmac1106 joined the channel
#
[jgmac1106]
gallery block in the new block editor on wordpress.com
[tantek], [schmarty] and [xavierroy] joined the channel
#
[xavierroy]
i use featured images differently for my watch posts: I have a common featured image for a series and then for each episode, i put in the featured image for that episode from imdb or tmdb
[jgmac1106] and [asuh] joined the channel
#
[asuh]
[xavierroy] thank you! I've been looking for something that will help me get around a permalink issue where I'm only using `%postname%` but it always adds `-2` to every blank post title permalink
#
[xavierroy]
I feel it happens for draft posts. Could be a WP thing
#
[asuh]
It's definitely a WordPress thing. They do it on purpose
cjwillcock, [Vincent], [eddie], jgmac1106, [jgmac1106], [kevinmarks], help, [davidmead], dougbeal|mb1, [stefp], [svandragt], [schmarty], [Rose] and [tantek] joined the channel
#
GWG
asuh, I am looking into inline svg, but will need a fallback, likely png
[asuh] joined the channel
#
[asuh]
GWG, for what reason do you see you’ll need a fallback?
#
GWG
file_get_contents not permitted on all servers
jgmac1106, [davidmead] and [jgmac1106] joined the channel
#
GWG
It's a local file, not a url
[asuh] joined the channel
#
[asuh]
GWG, ah right. Here are a few other methods I found. https://blog.teamtreehouse.com/perfect-wordpress-inline-svg-workflow
[svandragt] joined the channel
#
GWG
Regrettably won't work
[tantek] joined the channel
#
[asuh]
darn. there’s a couple more suggestions in the comments too
#
GWG
Well, I tried this a while back and ended up with the sprite as the easiest solution. Second is inline with an image fallback
#
[asuh]
I don’t think tihs would work but what about implode? http://andreagandino.com/2016/09/06/an-alternative-to-file_get_contents/
#
GWG
Post Kinds only has a few svg icons, so I am testing in there and I will roll out the same code to the other icons in Syndication Links and Indieweb
#
GWG
I played a little at lunch
#
[asuh]
makes sense
#
GWG
Let's see how it works out
#
[asuh]
another alternative backup would be JS insertion of SVGs
[stefp] joined the channel
#
GWG
I avoid js
#
GWG
Not saying that I might not try it, but I prefer server side
#
[asuh]
I get it, it you could use continue using file_get_contents with js feature detection to insert svg when that doesn't work. It's a solid fallback and would prevent I unnecessary png backups
#
[asuh]
*but, not it