Celebrate Christmas and New Year with 10% off on Themes Bundle, use coupon code "XMAS10" Buy Now

Display one image on Recent Posts

Home Support Business Growth WordPress Theme Display one image on Recent Posts

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Grace Themes 2 years, 2 months ago.

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
    Keymaster

    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
    Keymaster

    Hi,

    Please send your website URL and WordPress admin login details at support@gracethemes.com
    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.