How to add an IF statement within query_posts
-
Hi,
I was wondering how I might be able to add and IF statement with query_posts please? Something like…
from this…
<?php query_posts('category_name=home-news-events-title&posts_per_page=1');
to this…
<?php query_posts('category_name=home-news-events-title || category_name=sports_title&posts_per_page=1');
Many thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add an IF statement within query_posts’ is closed to new replies.