excluding posts in Wordpress
Posted
by Ayrton
on Stack Overflow
See other posts from Stack Overflow
or by Ayrton
Published on 2010-05-19T16:41:28Z
Indexed on
2010/05/19
16:50 UTC
Read the original article
Hit count: 255
Wordpress
I wondered how I could exclude posts in Wordpress. E.g. I have a string
$exclude_ids (= "4,5,6") or (="-4,-5,-6")
and I would like to prevent these posts from showing up. How would I do that?
I already tried:
query_posts('p=' . $exclude_ids);
but that didn't really work out and I didn't really find any information regarding this topic on google.
Cheers
© Stack Overflow or respective owner