WordPress.org

Ready to get started?Download WordPress

Forums

problem with sort_column=name in dropdown_cats tag (4 posts)

  1. luisresplandor
    Member
    Posted 9 years ago #

    Hi i'm using the dropdown_cats tag
    --> http://codex.wordpress.org/Template_Tags/dropdown_cats

    and added the parameter sort_column=name, so the code look like:

    <?php dropdown_cats('sort_column=name'); ?>

    ok, in the blog the dropdown is showed fine, but not ordered by name.. it should work, but i dont know what is wrong.

    any help, would be appreciated.

    my blog: http://resplandor.comearepas.com

    i also wonder it theres a way to show the authors in a dropdown box as the categories? i've been searching but apparently it cant be done

  2. Kafkaesqui

    Posted 9 years ago #

    dropdown_cats() does not accept parameters in the 'query-string' fashion. Try this:

    <?php dropdown_cats(true, 'all', 'name'); ?>

    See the following page in the Codex on passing tag parameters:

    http://codex.wordpress.org/Template_Tags/How_to_Pass_Tag_Parameters

  3. luisresplandor
    Member
    Posted 9 years ago #

    yeah, it works perfectly, very thanks.

    What about the authors?

  4. Kafkaesqui

    Posted 9 years ago #

    What about 'em? Sorry, there's no equivalent "dropdown_authors()" function currently in WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.