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


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'); ?>,
    endif; ?>
  • Hi @darkwoods

    Have you read over this guide:

    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


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

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