Home › Forums › General Issues › Can't get ACF fields to display on other pages › Reply To: Can't get ACF fields to display on other pages
I can’t give you any help with Avada, I don’t know anything about it.
With basic PHP you need to supply the post ID of the post you want to get the value from.
the_field('discord_channel_title', $post_id);
How or where you’d get this post ID value at the location you want to show the value is what I can’t say. Usually there is some type of loop. For example the standard WP post loop looks something like this
while (have_posts()) {
the_post();
// $post_id is assumed to be the post ID of this post
the_field('discord_channel_title');
}
I can’t say how you would get the post ID where you are trying to use ACF in Avada.
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.