Display posts using post ID’s in an array

I currently have an array of post ID’s stored as $recenty_viewed that looks like this:

Array ( [0] => 3164 [1] => 3165 [2] => 3168 [3] => 3176 )

I’d like to display each post thumbnail and title using the ID’s above, but I can’t seem to figure out how to get the data from each post. Any idea?

Read more here: Display posts using post ID’s in an array

Leave a Reply

Your email address will not be published. Required fields are marked *