Support

Account

Home Forums Front-end Issues Displaying specific content into another page

Helping

Displaying specific content into another page

  • I want to display a specific category on another page..

    I have tried to play around this code that will display all categories in loop and it works but how can i choose to not loop it and show a specific category with its belonging sub fields only?

    I know this is a nooby question but any help would be much appreciated = )

    <?php if(get_field('prices', 768)):
    while(has_sub_field('prices', 768)): ?>
        
    <h4><?php if the_sub_field('category');  ?></h4>      
    
    <?php if( get_sub_field('items', 768) ):							
    while( has_sub_field('items', 768) ): ?>
    	
    	<?php the_sub_field('title'); ?>, 
    	<?php the_sub_field('price'); ?>,
        
    <?php 
    endwhile;
    endif; 
    
    endwhile;
    endif; ?>
  • Hi @darkwoods

    Have you read over this guide:
    http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-taxonomy-term/

    This will explain how to load from a taxonomy term.

    If this is not the correct answer, please re-explain your issue as it is very confusingly written in a repeating format that is hard for me to read and also understand when I read it

    Thanks
    E

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

The topic ‘Displaying specific content into another page’ is closed to new replies.