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?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
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.
EditYou'll need a small callback function to make the edit work:
|
|||||||||
|
