Support » Themes and Templates » WP_Query("cat=4&showposts=4"); question

WP_Query("cat=4&showposts=4"); question

  • Good day,

    I would like to know how to change this code:
    <?php $recent = new WP_Query("cat=4&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>

    to display more categories, instead of only one?

    Newbie here, thank you.

Viewing 1 replies (of 1 total)
  • <?php $recent = new WP_Query("showposts=4"); while($recent->have_posts()) : $recent->the_post();?>

    Try this once.

Viewing 1 replies (of 1 total)
  • The topic ‘WP_Query("cat=4&showposts=4"); question’ is closed to new replies.
Skip to toolbar