Hello I am new to using ACF and I am trying to put fields into my home page I have set up the font end and I can get it to the edit page however the template used is the default template which when I check is made up of page.php
template parts/ slider.php
template parts/ home widgets.php
template parts/ banner.php
template parts/ page.php
Which of these components should I add code to I have tried but without success to use the following code
// check if the repeater field has rows of data
if( have_rows(‘features’) ):
// loop through the rows of data
while ( have_rows(‘features’) ) : the_row();
// display a sub field value
// no rows found
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users