Support » Fixing WordPress » Show categorie, subcaterorie and all posts

  • tomaskutaj

    (@tomaskutaj)


    I am currently showing all the post from main category.Using this code.

    <?php query_posts('category_name=Clients');?>
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    	<h2><a>"><?php the_title(); ?></a></h2>
    	<p><?php the_excerpt(); ?>
    	<?php endwhile; else: endif; ?>

    Is there any way to change it so it will show main categorie, then name of subcategory, all the posts related then other name of subcategory and all related posts…. ?

  • The topic ‘Show categorie, subcaterorie and all posts’ is closed to new replies.