controlling posts without a plugin, using Kubrick
-
wp community,
I have tried super hard to resolve this question by reading up on pages; the loop; templates; themes; conditional tags, and template hierarchy.
i’ve seen variations of this question a few times in these forums. the answer is usually “read this page (such as templates page or theme page)”. that’s often the last comment in the thread. my gut tells me it’s because they were intimidated; not that they figured it out by reading the suggested page.
here is what i’m trying to accomplish: i have a series of posts that are category-3, or “news”. i don’t want them to appear on the blog page; only on the news page. i used the following code to omit them from the blog page:
function exclude_category($query) { if ( $query->is_home ) { $query->set('cat', '-3'); } return $query; }
what i can’t accomplish: how do i get the posts w/ category-3 to appear on a page titled “news”?
i’m using the Kubrick theme.
thank you!!!!
- The topic ‘controlling posts without a plugin, using Kubrick’ is closed to new replies.