How to retrieve multiple categories using query_posts?
-
I got this code
<?php query_posts(‘category_name=’blog’&posts_per_page=1’); ?>
<?php while (have_posts()) : the_post(); ?>
<!– Content Here –>
<?php endwhile;?>how can I query multiple categories in the query_post?
for example like this? is this correct?
<?php query_posts(‘category_name=’bog || news’&posts_per_page=1’); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to retrieve multiple categories using query_posts?’ is closed to new replies.