index.php — How To Hide Posts based on Tags?
-
I’m building a template that for the life of me I can’t find a working method to build my main page — index.php — so that it will not display posts that have been published with a certain tag.
From a bit of Googling, the code that looks close as what I need to do goes something like this:
php query_posts(array(‘tag__not_in’ => array(‘apple’,’orange’)));
No luck seeing this work, though. All posts are still displayed on main. I’m a bit of a novice to PHP, so I’m sure it has to do with me failing at proper array logic when using tag__not_in().
Would love some help in getting this issue fixed! Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘index.php — How To Hide Posts based on Tags?’ is closed to new replies.