Home › Forums › ACF PRO › show posts from custom post type with specific post object › Reply To: show posts from custom post type with specific post object
You are on the team single post and you are attempting to show posts in a category that are related to this post through a category. Not easy, and I cannot really do all the code for you.
CPT (team) => Categories (team selected here) => posts in categories
You need to do a reverse relationship query on the categories (taxonomy) to get a list of categories where the team is selected, very similar to this https://www.advancedcustomfields.com/resources/querying-relationship-fields/.
Then you need to do another query on for the posts that you want to show based on the categories returned in step 1.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.