Omitting a category’s posts from front page
-
I have two categories in my blog (Schedule and Posts). Both categories only contain posts from the future (this blog is a project of mine, not a typical blog). I have been able to display future posts on the main page but wish to omit the posts from the Schedule category (#2) and only show posts from the Posts category (#1). I have tried the following code on Line 495 in classes.php with no success at omitting category #2 posts from displaying. Any suggestions are greatly appreciated. Thanks!!!
if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’) {
if ($cat == ‘1’) { $where .= ” AND post_date_gmt <= ‘$now'”; }
else { $where .= ” “; }
$distinct = ‘DISTINCT’;
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Omitting a category’s posts from front page’ is closed to new replies.