CSS for Resizing Video
Just a handy chunk of CSS to make your video embeds behave better. It’s out there but not a bad thing to spread farther.
Origin Story This is an odd one but has a number of uses outside this weird scenario. In this case authors have access to Site B but want the content they write to show up on Site A on the appropriate pages/posts. Given this is a multisite I could tie the sites together and do the switch_to_blog so that posts updated on Site B update Site A. I could also periodically clone the whole site to the destination etc. This all felt fairly aggressive and lacking in flexibility. It seemed like it’d have the potential to go very wrong and would require a lot of thinking to prevent abuse while allowing for flexibility. JSON API Route I decided instead to create a little shortcode that would let you pick a site URL (any site), add a post type, the content ID and that would spit the content of that target out in your page/post. There are search, SEO concerns with this route but it’s a decent path for a quick solution. As I write this, I now realize I could do this a lot better with a check of the API content and then setting this to update the content if the data differs. That is one of the advantages of writing posts about stuff. You think about it a […]