Home › Forums › Front-end Issues › echo a conditional field into a page › Reply To: echo a conditional field into a page
Hi!
1. No, you dont have to add anything to functions.php
2. you cannot use the_secondary_content() unless that’s a function you’ve created yourself..
In order to output the value of the field you can use either:
echo get_field('secondary_content');
//or
the_field('secondary_content');
and this should work if you put it inside your loop as long as it’s a standard loop and not just a foreach or something.
Are you certain that the “who we are” page uses page.php and not a custom template?
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.