Get the WordPress title && post thumbnail of blog page

This is a quick easy tip for displaying the title of the posts page assigned in Settings > Reading of the WordPress dashboard.

For title:

get_the_title( get_option("page_for_posts", true));

For featured image:

get_the_post_thumbnail_url(get_option("page_for_posts", true),"full");

Have fun!

Leave a reply:

Your email address will not be published.

Site Footer