Get URL from all images in a post
You probably can’t find any attached images because those images are not considered ‘attached’ or have been attached to another post before. With this script you can search directly in the_content() for all the attached images and then create another list with only the <img> tags cleaned from the rest of the text. $post_content = … Read more