Hi, I know this has been asked and I can’t figure out what is keeping the fields from displaying. The field shows as it should in the admin area and the data is there. Below is a basic custom page template:
First, can you confirm that this template file is the correct one for the URL you are viewing?
You can test by simply adding this to the file: <h1>Hello World</h1>
Secondly, your code contains an incorrect syntax for the the_field function. Please read over the docs for both functions used to see that they both accept a string parameter of the field_name, not a value. <p><?php the_field( $snippet ); ?></p> should be <p><?php the_field( "snippet" ); ?></p>
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Nothing displays on Front-End’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users