Home › Forums › ACF PRO › Get custom post type fields value in theme with code › Reply To: Get custom post type fields value in theme with code
@tiger217 are you trying to display it on a page template setup for the Custom Post Type? For example, if you created a Portfolio CPT (portfolio), are you using a single-portfolio.php page template?
Otherwise, if you are doing it from a different template, you will need to identify that in your get_field()
Reference: https://www.advancedcustomfields.com/resources/get_field/#get-a-value-from-different-objects
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.