Forums

[resolved] Problems with my navbar. How to unlink a certain category? (9 posts)

  1. do77
    Member
    Posted 3 years ago #

    Hey guys,
    I have a problem with my navbar and I really hope someone can help me with it. The code for the navbar looks like that:

    <div id="subnavbar">
    
    	<ul id="subnav">
    		<?php wp_list_categories('sort_column=name&title_li=&depth=4'); ?>
    	</ul>

    and my navbar looks like:

    Home I Bars/Clubs I Dining I .....
    I Monday
    I Tuesday
    I Wednesday
    I Thursday
    I .....

    As it is right now, visitors can click on monday, tuesday and so on and get to the appropriate category. But if they click on Bars/Clubs they get a list of all posts in a randomn order. (newest to oldest posts I guess). What do I have to add to the code or change to unlink the Category Bars/Clubs? My visitors should only be able to click on MOnday through sunday.

    Oh yeah, I didnt add the posts to the category Bars/Clubs. But since the other ones are subcats it automatically shows up there.

    I would really appreciate some help. Thank you!
    Dom

  2. do77
    Member
    Posted 3 years ago #

    I just tried e 'exclude=29&...' but it just hides the whole category. Thats not exactly what I want :-(
    Do I have to change something in the breadcrumb.php? I guess thats what defines the behaviour of the nav bar right?

  3. webyoo
    Member
    Posted 2 years ago #

    I have the same requirement does anyone have the code to deactivate the top button and what do I have to add to the code or change to unlink the Category

    Thanks

  4. henkholland
    Member
    Posted 2 years ago #

    <?php wp_list_categories('sort_column=name&title_li=&include=5,12'); ?>

    This is what I use. You can replace include by exclude

    Actually I use this
    <?php wp_list_categories('orderby=order&title_li=&include=5,12'); ?>
    together with the plugin my-category-order but I don't know if that one is compatible with 2.8 (I am still on 2.7.1)

  5. webyoo
    Member
    Posted 2 years ago #

    Many thanks for your help will give this a try

  6. webyoo
    Member
    Posted 2 years ago #

    Sorry for being stupid. I really wanted to change the Nav bar for pages - the first tab dosnt do anything then the dropdowns show pages.

    Tab1 - inactive
    |
    Tab2 - active
    Tab3 - active

    Is this possible.

    Thanks

    Dave

  7. henkholland
    Member
    Posted 2 years ago #

    I am getting lost; do you have a link to your site or are you devoloping locally?
    http://codex.wordpress.org/Template_Tags/wp_list_categories
    http://codex.wordpress.org/Template_Tags/wp_list_pages

    <?php wp_list_pages('sort_column=menu_order&include=1209,96,557,219&title_li='); ?>

  8. bill127300
    Member
    Posted 2 years ago #

    This plugin will do what you want:

    http://wordpress.org/extend/plugins/page-lists-plus/

    Just put a # in the links to field and that page will no longer link to anywhere.

  9. webyoo
    Member
    Posted 2 years ago #

    Really appreciate your help bill127300 and henkholland.

    The plugin worked a treat once I worked it out.

    Thanks again

    Dave

Topic Closed

This topic has been closed to new replies.

About this Topic