How to echo images Urls from a wordpress post, that are relally in the post
If you want to get the actual images inside the post content, you can match them using a regular expression. To get just the images URLs and dimensions your code can be something like this: if( is_single() ) { global $post; // Match the image URLs inside the post content $pattern = ‘/<img.*src=”([^”]+)”[^>]*>/’; $matches = … Read more