Home › Forums › ACF PRO › Custom post type question? › Reply To: Custom post type question?
Hi John,
Thank you for responding. I’ll try to answer your questions. Please bare with me as I’m still learning…
What template file are you editing to show the values?
I created a single-portfolio.php file to use as my template for sections.
How are you calling get_field()?
Pretty sure this is wrong, but I was following these instructions..
https://www.advancedcustomfields.com/resources/adding-fields-posts/
So in my case it looked like this:
<?php
the_post();
// vars
$project_title = get_field(‘project_title’);
?>
<h6><?php the_field(‘project_title’); ?></h6>
are your field calls inside of “The Loop”?
Sadly no. Not sure how this loop is supposed to look like…
Again, thanks again in advance…
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.