• Hi all,

    I have created a query for a category to produce a list of entries for said category. I wondered if there was an easy way to create an active state for the category post you are currently on.

    Here is my code:

    <?php
        $gigList = new WP_Query();
        $gigList->query('showposts=99&cat=9');
    	?>	
    
    	<?php while ($gigList->have_posts()) : $gigList->the_post(); ?>
        <li><?php the_time('d:m:y') ?>&nbsp;&ndash;&nbsp;<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
    	<?php endwhile; ?>

    Thanks
    Chris

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Category list query – can I add active state?’ is closed to new replies.