Support » Fixing WordPress » List Category Titles Only Not As Links

  • Hey, anyone who provide a solution will get their name in credits for this new plugin.

    I want to create a drop down menu of the categories in a blog for a new plugin I’m developing. Every function seems to always return links and I just need the TITLE on its own.

    Anyone have any ideas, thanks for any help. Here is where I’m at right now…

    <select name=”test” size=”1″>
    <option value=”
    <?php wp_list_categories(‘show_option_all=style=nonetitle_li=’);?>”>
    <?php $test = wp_list_categories(‘echo=0&show_option_all=style=none&title_li=’);

    foreach(($test) as $category) {
    echo $category->cat_name . ‘ ‘;

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘List Category Titles Only Not As Links’ is closed to new replies.