• Is there a hack or something that makes the exclude category function also work in the dropdown_cat function, instead of only in the wp_list_cats?
    I’m not good at php, that’s why I’m asking, and I’d like to keep my pages as empty as possible…

Viewing 7 replies - 1 through 7 (of 7 total)
  • I actually made a plugin for a jump menu/drop down menu with the ability to exclude categories from the drop down list.
    https://typedby.com/archives/2004/06/22/dropdown-plugin-with-ability-to-exclude/
    The output of the function is:
    <option value="permalink to category page">category name</option>
    Hope this helps.

    Hey Silver, your plugin looks great! Before I install it though, there are a couple of functions I’m hoping can be added: Number of posts per category and subcategories listed under their parents. Any ideas? Thanks…

    Oh good! Someone else asking for that, number of posts -and- hierarchy. Maybe we should start a club or something?

    Posts per category is already available. The following function and parameters will list all categories on your blog in the drop down along with the number of posts in the category.
    <?php dropdown_cats_exclude('optioncount=1'); ?>
    Parameters available for the plugin are:
    1. Sort the categories by name or ID number.
    2. Sort the categories in ascending or descending order.
    3. Show the date the last post in the category was made.
    4. Show the number of posts in each category.
    5. Hide empty categories.
    6. Exclude categories.
    Regarding putting subcategories underneath their parents. I will look into adding that feature tonight. That’s if my husband lets me stay up late.

    Sorry. I posted the above entry. I didn’t realize I was logged out.

    If you haven’t seen it yet, there is a plugin for a category dropdown with the capability to have both post count after the category name and a parent/child listing. You can get it here.

    It seems like this feature should actually end up as an extension of the dropdown_cat function (perhaps with a wp_dropdown_cats function similar to wp_list_cats).
    Are there any plans to add this in vs 1.3 or a future version?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude categories in dropdown_cats’ is closed to new replies.