Thanks James. Sorry I couldn’t get it the first time. Really appreciate your help on this one!
string ’14’ (length=2)
I wonder if the problem is that the value is formatted with single quotes around it.
I am returning 14 as the author ID and then on the vardump for that attorney custom post type I am getting ’14’ with quotes. Would that be it?
I went into the custom field settings and placed allow null and allow multiple values to YES.
None of these worked. I know the author ID was 14 so I put that into the meta_key and meta_value and then did you suggestions but still not luck. Very strange.
Hey John, I figured this one out. I had numberposts -1 in my query. I changed it to posts_per_page -1 and everything is working fine now. Thanks for looking at it though!
John, you are correct. The custom field is on a custom post type object page template, office location. When I edit that CPT page, I select the taxonomy it relates to.
Taxonomy -> location -> Dallas, McKinney, etc
Custom Post Type -> office -> Dallas, McKinney, etc.
Custom Post Type -> attorney -> can select a location from the taxonomy above
I want to show all attorneys with a certain location taxonomy on a office page.
Like you said in your description, in the edit screen for the office page, I select a location taxonomy and pass it to my loop on the office template.
It shows the attorneys that only have one location taxonomy selected but does not show the attorneys that has both office locations selected.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.