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!
🗓️ Just one more day until the next session of ACF Chat Fridays! Make sure to register for the latest updates on what’s coming in ACF 6.1!
— Advanced Custom Fields (@wp_acf) March 30, 2023
📆 Friday 31st March 3pm UTC
👉 Register here - https://t.co/3UtvQbDwNm pic.twitter.com/7xtEJakeQN
© 2023 Advanced Custom Fields.
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.