I’m creating a custom loop, using Post Indexer, to display of posts from across the network.
In my network_have_posts() loop, how can I display the permalink and the post thumbnail (featured image)?
If I use get_the_post_thumbnail([post ID]), WordPress looks for the thumbnail from the current site’s media library, not the originating site. This picks correct thumbnails from the current site, and incorrect or no thumbnail from other sites.
Similarly, if I use get_the_permalink, WordPress returns the correct URL after the domain name, but with the current sites base domain name.
Hope this makes sense. Please ask if you need any more info about what I’m trying to do.