Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display the featured image of a page in the page itself automatically in WordPress? [closed]

Please i need your help with the following.

The features images that i am setting for my pages are not getting displayed in the pages themselves. Is there any plugin or something i can do in order to let those featured images that i am setting for posts and pages to get displayed inside the corresponding entry?

Any suggestions are greatly appreciated!

like image 802
CompilingCyborg Avatar asked Dec 07 '22 08:12

CompilingCyborg


1 Answers

Put:

<?php 
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}  ?>

in the template where you want the featured image to display.

like image 163
Ryan Potter Avatar answered May 02 '23 21:05

Ryan Potter