How can i show all categories using wp query ?
-
<?php $recent = new WP_Query(); ?> <?php $recent->query('cat=1&showposts=2'); ?>
With what can i replace cat=1 to show posts from all the categories?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How can i show all categories using wp query ?’ is closed to new replies.