Forums

[resolved] wp_dropdown_categories is echoing but not linking (5 posts)

  1. Cathy Tibbles
    Member
    Posted 2 years ago #

    This is the code that I'm using, <li><?php wp_dropdown_categories('show_option_none=Categories&hierarchical=true&orderby=name'); ?> </li>

    I am using this in a modular template that I'm pulling into some pages and categories templates. Would the post query make any difference on this template tag?

    And how do I get it to display the LINKS?

  2. songdogtech
    Member
    Posted 2 years ago #

    Which links? Links to the categories? Here are the wp_dropdown_categories docs.

  3. Cathy Tibbles
    Member
    Posted 2 years ago #

    Thank you - but I am using that function call. And it is displaying the names of the categories, but no links. I've no idea why.

    I mention that I'm using custom post queries just in case that may have something to do with it, but I doubt it. That function can be used w/i or w/o the loop.

    Still puzzled.

  4. songdogtech
    Member
    Posted 2 years ago #

    wp_list_categories works differently by listing links for category pages. Is this for a main navigation menu?

  5. Cathy Tibbles
    Member
    Posted 2 years ago #

    Found the fix in this old thread!! No idea why the template tag doesn't do this from the get-go!

Topic Closed

This topic has been closed to new replies.

About this Topic