WordPress.org

Ready to get started?Download WordPress

Forums

Show categorie, subcaterorie and all posts (1 post)

  1. tomaskutaj
    Member
    Posted 2 years ago #

    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.... ?

Topic Closed

This topic has been closed to new replies.

About this Topic