Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Get Yoast share image to use as a thumbnail in another plugin

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles