query_post, how to add OR condition?
-
I want to add an OR condition to a query_post but can’t find anything on how to do it. Since AND seems to be like this:
<?php query_posts('showposts=1&cat=-4'); ?>
I tried something like:
<?php query_posts('tag=wordpress || author=elaine'); ?>
to show posts tagged with wordpress OR written by Elaine. This doesn’t seem to work.
Anyone know how to write this?
- The topic ‘query_post, how to add OR condition?’ is closed to new replies.