Is it possible to create a loop that goes through all the available custom post types without statically defining what those custom post types are, and then displaying the featured image of the first post for each of those custom post types?
Leave a Reply
You must be logged in to post a comment.
This should work for you:
As an addition to @Pippin answer:
It is even possible to use a single query, with a slightly different syntax.
Edit
You’ll need a small callback function to make the edit work: