I’ve been Googling around but can’t seem to find a snippet for my problem.
I have two custom post types – Foods, Promos. Now I have a section on my homepage where I want to show 3 ‘featured’ items either from the Promos or Foods with a tag of ‘featured’.
So basically I just want a snippet to show 3 posts with a tag = ‘featured’ from those two custom post type. I am able to show post with a tag of ‘featured’ but only from Foods or only from Promos.
This reply has been reported for inappropriate content.
Seems about right. There might be more efficient ways, but that’s hard to tell without seeing the structure of your code. There’s nothing wrong about this approach though. (I think, I read through it fairly quickly).