• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Hide category from category list in sidebar

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Hide category from category list in sidebar

This topic is: not resolved

Tagged: categories, category, list

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 10 months ago by Marc.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 24, 2012 at 3:36 pm #1515
    jimmyc
    Member

    Hello,

    How can i hide a category from showing in the category list in the sidebar.

    So for example; i have category a, b,c,d,e,f,g.

    When i place the category widget in the sidebar each category will be visible in the category list.

    However, i don't want category d to be visible in the list.

    Hope you respond,

    Jimmy C

    November 24, 2012 at 4:02 pm #1517
    Marc
    Participant

    You might take a look at this -

    http://codex.wordpress.org/Template_Tags/wp_list_categories#Include_or_Exclude_Categories


    Resultz Digital | Websites, search marketing services and consulting for small business.

    November 24, 2012 at 4:16 pm #1518
    jimmyc
    Member

    Hello

    I pasted this code:
    <ul>
    <?php wp_list_categories('orderby=name&show_count=1&exclude=10'); ?>
    </ul>
    At the end of the CSS file but it does not help.
    Do you have another way?
    Regards,
    Jimmy C

    November 24, 2012 at 4:28 pm #1519
    Marc
    Participant

    It was not CSS code, it would probably be best to remove it from your stylesheet.

    You may find it easier to use a plugin, like this one -

    http://wordpress.org/extend/plugins/extended-categories-widget/

     

     


    Resultz Digital | Websites, search marketing services and consulting for small business.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble