Welcome to the Treehouse Community
Looking to learn something new?
WP _query conditional statement with custom post
I would like someone help if it's possible to write conditional statement with multiple WP Queries.
Here is what I want to do.
I have custom posts 1, each post has own parameters like title, picture, description.
I have custom posts 2, each of them has a tag.
I need to display in every custom post 1 as many as exist custom posts 2 which tags are equal to the custom post 1 title.
Is it possible?
Kevin Korte28,135 Points
Sure it's possible. You're going to have to get the tags of custom post 2, and show any that match the title in custom post 1. WP has a lot of functions for working with tags and custom posts.