Home › Forums › General Issues › Retrieve specific Post Object's based on custom field › Reply To: Retrieve specific Post Object's based on custom field
Hi @elliot
I apologize I wasn’t very specific. The template I’m using is a custom page template.
Here’s the code for the first method listed in the documentation, setting the post
object and using wp_reset_postdata()
. The result is that only the person’s name (line 12) and the correct company name and link is displayed for that person. Everything else, including the person’s title and biography don’t show up.
The more I thought about it, the more I think the loop method listed in the documentation isn’t the method for what I’m trying to accomplish since I’m only trying to target one specific company from the post object.
Let me know if there’s any other information you need. Thanks again for your assistance!
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.