• Is there a way to use wp_list_categories function to generate the list of categories without

    • element tags?
    • Or better, is there a way to get the categories as an array and the print it out the way I’d like? Something like that

      	$miha_out = wp_list_categories('orderby=name&title_li=');
      	eregi_replace('<li>', '', $miha_out);
      	eregi_replace('</li>', '', $miha_out);
      	echo $miha_out;
      

      does not work as it outputs directly. Where is the wp_list_categories function defined anyway?

      Thanks,

      Miha.

  • The topic ‘wp_list_categories without <li>’ is closed to new replies.