Deleted Image giving a 301

from what I see the issue might be in the redirections you are making and how you are making them. I did some research and you can use this (it is Ask Rubi group that has an article on the topic) to learn more about the redirections.

get_post_gallery with Gutenberg

Using birgire’s suggestions, I came up with the following solution that is working well with both the old pre-WP 4.x data and the newer posts that have been added under 5.0. // if there is a gallery block do this if (has_block(‘gallery’, $post->post_content)) { $post_blocks = parse_blocks($post->post_content); $ids = $post_blocks[0][attrs][ids]; } // if there is … Read more

Retrieve alt text by referencing the img src

Did you get anywhere with this? I’ve just written a plugin that does exactly this job. It’s basically a cron job that scans all your posts & pages to create an internal index of which images are where. It then synchronises your Media Library alt text with the images in your content. It’s based on … Read more

Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial

WordPress is inlining the style as an optimisation: When a page gets rendered, stylesheets that have opted-in to get inlined get added to an array. Their size is retrieved using a filesize call (which is why the path data is necessary), and the array is then ordered by ascending size (smaller to larger stylesheet). We … Read more