StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-18-2009, 04:49 PM
tssfacts tssfacts is offline
Registered User
Pro Plus Member
 
Join Date: Apr 2009
Posts: 19
Default Exclude cat id in Drop Down Menu

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 04:11 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.