• Resolved mortetm

    (@mortetm)


    Hi everyone,

    Does anyone have an idea on how to get the Yoast Facebook share image to use in another plugin to display Yoast image rather than thumbnail in a list of posts I’m making?

    I currently have this but would like to get the Yoast Facebook share image instead, just can’t figure out which method to use:

    $get_thumbnail = (strtoupper($order) == ‘ASC’) ? get_the_post_thumbnail(reset($qposts)->ID, ‘full’) : get_the_post_thumbnail(end($qposts)->ID, ‘full’);
    $output .= ‘<div class=”comic-thumbnail”>’.get_the_post_thumbnail($qpost->ID, ‘full’).'</div>’.”\r\n”;

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    While we are not familiar with your site we do know you can manually set a specific image for each post. You would need to click on the share icon and add in the image: https://pasteboard.co/Ibt82Cc.png.

    However, if you are looking or an automatic method Yoast does not have the ability to automatically pull an image from another plugin and output that specific image for Facebook.

    Please know that we can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter mortetm

    (@mortetm)

    Oh yes, sorry, I completely forgot I opened this topic. I managed to solve this issue through other means. Instead of using Yoast share image in the other plugin, I used custom fields in that plugin and left Yoast to do only Yoast things ??

    Thanks for the reply, though! Have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get Yoast share image to use as a thumbnail in another plugin’ is closed to new replies.