Home › Forums › Front-end Issues › Info is no longer showing on front of site › Reply To: Info is no longer showing on front of site
Hey,
If opening_hours and book_online are acf fields, then you can use
$book_online = get_field('book_online', $post->ID);
if(function_exists( 'iinclude_page' ) && $book_online)
{
//code here
}
You also need to make sure that the $post
and the function iinclude_page
is available.
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.