For Microkids related post plugin
He said
“Using the get_post() function you could get any data you need from
the related posts.”
and he posted this snippet of code.
$related_posts = MRP_get_related_posts( $post_id );
I’m not exactly sure how to use the get_post feature for this situation. I would like to display the titles and thumbnail for each post in that array. Any help would be appreciated.
possibly:
(edited after downloading and testing the plugin)
Rather than using
get_posts
, I’d recommend usingget_the_title
andget_the_post_thumbnail
to get the data that you need. You can use them like:this worked for me:
The markup I needed to achieve was:
Hope it helps someone,
Best.