Home › Forums › Front-end Issues › How to Get Field in the Title › Reply To: How to Get Field in the Title
I think you’ll need to get help from whoever built the framework you’re using. Not seeing it on the home page means that either you’re putting the code in the wrong place or you need to supply the post ID when getting the field from ACF, for example
<?php the_field('your_field_name', $post_id); ?>. I don’t know if this value is available in that class method that you’re trying to modify.
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.