Selecting Categories within WP_Query – how to equate cat no. with name??
-
I’m trying to update some php code (see below) which is selecting the most recent post by category. The problem is in WP2.5 I can’t see how to determine what the category numbers are any more.
The code below is referring to category “1”, but when use MANAGE / CATEGORIES in the WP 2.5 dashboard I don’t see any numbers against the category names.
<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
Can someone please explain how I can figure out which category the numbers refer to? Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Selecting Categories within WP_Query – how to equate cat no. with name??’ is closed to new replies.