Home › Forums › Add-ons › Repeater Field › All fields not displaying
Hi There, I’ve taken over a build on a website and am trying to add in new repeater fields. I have added them in on WP but only 5 are displaying, 1 of them isn’t showing at all? any ideas?
<ul id="brands">
<?php
if(get_field('brands'))
{
echo '<h3>Brands</h3>';
while(has_sub_field('brands'))
{
echo '<li>'. get_sub_field('brand');
echo '</li>';
}
}
if(get_field('womens'))
{
echo '<li class="eye">WOMENSWEAR</li>';
while(has_sub_field('womens'))
{
echo '<li>'. get_sub_field('womens_brand');
echo '</li>';
}
}
if(get_field('mens'))
{
echo '<li class="eye">MENS</li>';
while(has_sub_field('mens'))
{
echo '<li>'. get_sub_field('mens_brand');
echo '</li>';
}
}
if(get_field('accessories'))
{
echo '<li class="eye">ACCESSORIES</li>';
while(has_sub_field('accessories'))
{
echo '<li>'. get_sub_field('accessories_brand');
echo '</li>';
}
}
if(get_field('eyewear'))
{
echo '<li class="eye">EYEWEAR</li>';
while(has_sub_field('eyewear'))
{
echo '<li>'. get_sub_field('eyewear_brand');
echo '</li>';
}
}
if(get_field('eyewear2'))
{
echo '<li class="eye">EYEWEAR2</li>';
while(has_sub_field('eyewear2'))
{
echo '<li>'. get_sub_field('eyewear2_brand');
echo '</li>';
}
}
if(get_field('footwear'))
{
echo '<li class="eye">FOOTWEAR</li>';
while(has_sub_field('footwear'))
{
echo '<li>'. get_sub_field('footwear_brand');
echo '</li>';
}
}
?>
</ul>
<?php endwhile; // end of the loop. ?>
Hi @Big_Al
Can you provide a URL to view the page?
What do you mean – isn’t showing at all?
is there a PHP error on the page which is cutting off the bottom of the page?
Thanks
E
The topic ‘All fields not displaying’ 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
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.