Forums

[resolved] how would i add the category name to this wp_query code? (2 posts)

  1. gbaka
    Member
    Posted 2 years ago #

    <?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
    I'm trying to add the category name to the code so it would show category name than post name in the link, any clue?

  2. gbaka
    Member
    Posted 2 years ago #

    figured it out...

Topic Closed

This topic has been closed to new replies.

About this Topic