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
I’m a self-taught developer myself 🙂 I think it’s quite common in our line of work..
Sorry I think this is more like it:
if (!empty($_GET['company'])) {
// we got company....
}
The URL you are directed to is probably not correct if you’re supposed to end up on the regular posts archive.. You can try switching the $archive variable out and replace it with a “hardcoded” url to the archive page.. Right not it seems like it’s trying to go to the archive of companies.
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.