Support

Account

Home Forums Add-ons Repeater Field All fields not displaying

Helping

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

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘All fields not displaying’ is closed to new replies.