Get 20% Off On All Our Premium WordPress Themes Bundle. Use GRACEBFCM Coupon Code For Discount Deal Upto Dec 15 Buy Now

Display one image on Recent Posts

Home Support Business Growth WordPress Theme 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 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.