![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I am trying to exclude some cat id in the drop down menu on the sidebar.php I have spend hours upon hours reading posts and the tutorial on this issue. My coding in sidebar.php is different than in the tutorial. Here is the coding I have <div id="sidebar"> <ul id="sidebarwidgeted"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Top') ) : ?> <li id="quick-search" class="widget"> <h2>Quick Search</h2> <?php wp_dropdown_categories('show_option_none=Select category&hierarchical=true'); ?> <script type="text/javascript"><!-- var dropdown = document.getElementById("cat"); function onCatChange() { if ( dropdown.options[dropdown.selectedIndex].value > 0 ) { location.href = "<?php echo get_option('home'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value; } } dropdown.onchange = onCatChange; --></script> I have placed this code <?php wp_dropdown_categories('orderby=name&title_li=&dep th=2&exclude=7'); ?> everywhere I can think to put the stupid thing. Am I missing a another php file that I need to add this exclude code to? Please tell me what I need to do ( and where I need to do it :) to to exclude cat id from drop down menu from the sidebar. Many thanks for your help. Towanda |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Horizontal drop down menu with static menu on click | officeto-go | General Discussion | 2 | 09-08-2010 07:19 PM |
| Replace drop down category menu with drop down page menu | StephanieV | General Discussion | 2 | 12-19-2009 03:08 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us