Adding Categories and Blogroll to a Jump Menu
-
I have been trying, for a couple of hours now, to add categories and blogroll into a Jump Menu. I’ve been able to add Archives thanks to a previous post in this forum but I haven’t been able to add it to categories nor blogroll. I am a PHP noob so I’m definitely not sure exactly on how to achieve this effect. If there is someone that could that would be greatly appreciated. Below is the code that I’m using for All 3 menus, only archives work.
<?php echo "<select name='archive-dropdown' onChange='document.location.href=this.options[this.selectedIndex].value;'> <option value=''>"; echo attribute_escape(__('Archives')); echo "</option>"; wp_get_archives('type=monthly&format=option&show_post_count=1'); echo "</select>"; ?> <?php echo "<select name='categories-dropdown' onChange='document.location.href=this.options[this.selectedIndex].value;'> <option value=''>"; echo attribute_escape(__('Categories')); echo "</option>"; wp_list_cats('sort_column=name&list=0'); echo "</select>"; ?> <?php echo "<select name='blogroll-dropdown' onChange='document.location.href=this.options[this.selectedIndex].value;'> <option value=''>"; echo attribute_escape(__('Blogroll')); echo "</option>"; get_links(-1, '<option>', '</option>', ' - '); echo "</select>"; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding Categories and Blogroll to a Jump Menu’ is closed to new replies.