The Only Way to Exclude a Category Busts Title Tag
-
If a guy searches for the code to exclude posts from one category from displaying on main page, he will find half million ways of how it will not work. It seems like all programmers go on and on about the same method to exclude a category, but it just doesn’t work. It took a lot of searching to find a way for it to actually work, but unfortunately this method changes the title tag of my page as well. This is the code which DOES exclude a category from displaying:
<?php if (have_posts()) : ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?> <?php query_posts("cat=-1,-91&paged=$paged"); ?> <?php while (have_posts()) : the_post(); ?>
What do i need to do to it so it doesn’t change the Title tag into the same title tag as main page has (my Post Page is NOT Front Page).
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘The Only Way to Exclude a Category Busts Title Tag’ is closed to new replies.