WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

Display one image on Recent Posts

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1788

    How I can have multiple images in a post and display one on “Recent Posts”? (Without duplicating the image in single.php file)

    #1791
    Grace Themes
    Member

    Hi,

    You can add multiple images in posts / pages. Set the image which you want to display on Recent Post section as a featured image.

    Please check this link for adding multiple images in posts.
    https://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages

    Regards
    Grace Themes

    #1792

    Doing that with multiple images (or with Photo Gallery), the featured image appears twice in the post (with different size)

    At the moment I’ve edited content-single.php file…

    /*
    if (has_post_thumbnail() ){
    echo ‘<div class=”post-thumb blogsingle”>’;
    the_post_thumbnail();
    echo ‘</div>’;
    }
    */

    #1798
    Grace Themes
    Member

    Hi,

    Please send your website URL and WordPress admin login details at [email protected]
    so we can check and solve your problem quickly.

    Regards
    Grace Themes

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.