how to get get_post_thumbnail_url on blog page
-
Hi, great plugin. I followed your FAQ on Github to output just the URL of the image but it returns nothing. Here is the code I am using for returns image URL only for blog page. Am I missing something?
$blog_id = get_option( 'page_for_posts' );
$blog_image = MultiPostThumbnails::get_post_thumbnail_url( get_post_type(), 'secondary-image', $blog_id, 'full' );
- The topic ‘how to get get_post_thumbnail_url on blog page’ is closed to new replies.