WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] hide category (4 posts)

  1. mobixone
    Member
    Posted 4 years ago #

    hi experts
    i have a humor blog & there is a category adult jokes, so i want hide this category on homepage & archeive pages etc. I have tried ACE advance category excluder & also hide category plugin but this adult category is still visible?
    anyone like to help me! in hide this category i dont want delete it just hide it.
    check it here
    http://www.mobixone.com

  2. Edward Caissie
    Theme Review Admin
    Posted 4 years ago #

    Try adding to the end of your style.css file:

    .cat-item-945 {display:none;}
  3. MichaelH
    Member
    Posted 4 years ago #

    Put this in your templates, such as index.php, archive.php, or category.php, before The Loop

    <?php
    $cat_to_exclude = 7;
    query_posts($query_string . '&cat=-'.$cat_to_exclude');
    ?>

    Related:
    Templates
    Stepping Into Templates
    Template Hierarchy

    If ACE isn't working wonder if you have other plugins conflicting?

  4. mobixone
    Member
    Posted 4 years ago #

    Oh Thanks Dear Friends
    ACE is working now it was also ACE Categories widget i haven't activated before.
    So The Problem Is Resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic