Home › Forums › Front-end Issues › Query to display all posts with ACF relationship value › Reply To: Query to display all posts with ACF relationship value
Another self-taught chiming in…
Building on Jonathan’s example, I would create a separate template for company post archives. Then you would just change the get_template_part function call to get_template_part( ‘content’,’company-posts’ ); or similar, and skip the “if($_GET)” validation stuff.
A bit strange you’re being directed to ../companies/ if your post-type slug is ‘company’ since archives aren’t automatically pluralized.
Lastly, what error are you getting?
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.