Forums

[resolved] How do I hide a catagory from the catagory list? (4 posts)

  1. arrakistor
    Member
    Posted 3 years ago #

    I run a news site. I have writers with columns. I want to assign their posts to a "columns" catagory. I want to turn a catagory into a page. That means I need to take it out of the catagory list and put it into the page list. So first I need to hide the catagory from the catagory list displayed in the header. How do I do that?

    <div id="navbarleft">
    		<ul>
    			<li><a href="<?php echo get_settings('home'); ?>">News</a></li>
    			<?php wp_list_pages('title_li=&depth=1&sort_column=menu_order'); ?>
    		</ul>
    	</div>
  2. arrakistor
    Member
    Posted 3 years ago #

    Solution:

    use &exclude=

  3. coolfreebies
    Member
    Posted 3 years ago #

    I want to do the same.

    Where do i put the code.

    site: http://www.cool-freebies.co.uk

    Thank you

    Coolfreebies

  4. MichaelH
    Volunteer
    Posted 3 years ago #

    Review the template tag, wp_list_categories(), and look for the exclude= parameter.

    Also might want to look at Category Templates and get a feel for the Template Hierarchy as well as using Page Templates|Page Templates.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.