new wp_query(parameters not passed)
-
hi everyone
im working on customizing wordpress 1.5.2i have a few queries to make on the homepage where i basically request a list of 5 recent posts put together by category. Now when i write the query i request the category and the length of the list by passing
$my_query = new WP_Query(‘category_id=21&showposts=5’);but the system always returns the latest 5 from any given category…not the category i want…21 in this example.
url is http://www.spoode.com/wordpress/
check it outthx for any help
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘new wp_query(parameters not passed)’ is closed to new replies.