• This is what i am trying to do:
    Is there a way to have the large image at the top of the blog post be different then the small thumbnail featured image that shows up in the category blog list view on my homepage? I also would hope to have the smaller thumbnail featured image to show (and not the big one) when the post is shared to social media sites. Is this possible?

    I found this plugin and instructions. Will this do what i am trying to do? https://www.wpbeginner.com/plugins/how-to-add-multiple-post-thumbnails-featured-images-in-wordpress/
    If so, I do not know where to paste this code below (the 2nd part of the instructions) to make it appear on the homepage and for social media shares.
    <?php

    if (class_exists(‘MultiPostThumbnails’)) :

    MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘secondary-image’);

    endif;

    ?>

    Please help. Here is my site, i am using Genesis: https://factualfairytale.com/

Viewing 6 replies - 1 through 6 (of 6 total)
  • You should be able to use the tutorial to set up different featured images for individual posts and the homepage.

    However, images used in social shares can be completely independent of whatever you choose as a featured image in WordPress.

    It’s called OpenGraph. You can use a free plugin like Yoast SEO to get OpenGraph functionality. Here’s a tutorial for setting that up.

    Thread Starter factual

    (@factual)

    You should be able to use the tutorial to set up different featured images for individual posts and the homepage.

    I do not know what you mean. That is what I am trying to do though. Can you please elaborate on how to do this? I was hoping to have two featured images, one for the post and another different one for the thumbnail that is on the homepage.

    Everything is explained in the tutorial you linked to, so I’m not sure what more I can elaborate on.

    Have you installed the Multiple Post Thumbnails plugin, as the tutorial instructed?

    Have you made the necessary code edits to your theme?

    Thread Starter factual

    (@factual)

    ok. I am having trouble getting the different thumbnail to show on the homepage. I am not sure what folder and where to paste the snippet below to make it work.

    I am not sure where and how this snippet should get posted:
    <?php if (class_exists(‘MultiPostThumbnails’)) :
    MultiPostThumbnails::the_post_thumbnail(
    get_post_type(),
    ‘secondary-image’
    );
    endif; ?>

    Appreciate the help! Thank you!

    Thread Starter factual

    (@factual)

    Thank you for your help. But could you please help me with this small issue. Everything seems to be working great except I cannot figure out where or how to paste this snippet:

    <?php

    if (class_exists(‘MultiPostThumbnails’)) :

    MultiPostThumbnails::the_post_thumbnail(get_post_type(), ‘secondary-image’);

    endif;

    ?>

    Can you please tell me exactly which folder and line to past this code so the second featured image displays as the thumbnail on the homepage and categories pages?

    First, please accept my apologies for my “everything is explained in the tutorial” comment above. That wasn’t entirely accurate.

    I missed that you were using Genesis, and that tutorial was not written with Genesis in mind. Genesis handles things a bit differently than a typical WordPress theme.

    Since Genesis is a commercial product, it’s encouraged to seek help in their official support channels instead of on this forum. More information about that is available under the “Commercial Products” section in the Forum Welcome.

    I can tell you that you’re definitely on the right track. Best of luck! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to have two featured images? One for post & one for homepage/social shares’ is closed to new replies.