Excluding categories from blog page also excludes the posts from tag pages

resolved (3 posts) (2 voices)

  1. advancetogo
    Member

    Hi,

    I noticed a problem as described in the subject line here. When you exclude categories from the blog page it also excludes the posts in those categories from the tag pages.

    Do you know of a fix for this?

    Many thanks,

    ~ Paul

    Posted 1 year ago #
  2. Elliott
    Support

    Hello advancetogo,

    Open up /wp-content/themes/infocus/archive.php and on line 99 you should see this,

    query_posts($query_string . '&cat='.$exclude_blog_cats); ?>

    Go ahead and change it like this,

    query_posts($query_string); ?>

    This will stop your posts from being excluded on the archive page which is used for categories, tags, dates, authors, etc etc.

    Posted 1 year ago #
  3. advancetogo
    Member

    Thanks for your fast reply Elliott - that worked perfectly! :-)

    ~ Paul

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme