leungeric.com

Digg del.icio.us Technorati StumbleUpon Twitter

wp_list_cats() children=0 Issue

Tutorials & Resources | WordPress

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

While you are customizing/developing your WordPress theme, if you found children=0 paramter is not working with wp_list_cats() function (deprecated), you should use wp_list_categories() function instead.

It’s important to note their parameters are different, comparison as below:

wp_list_cats > wp_list_categories

optionall > show_option_all

sort_column > orderby

sort_order > order

optioncount > show_count

list > style

children > depth

optiondates > show_last_updated

child_of > child_of (unchange)

hide_empty > hide_empty (unchange)

use_desc_for_title > use_desc_for_title (unchange)

hierarchical > hierarchical (unchange)

feed > feed (unchange)

feed_image > feed_image (unchange)

exclude > exlude (unchange)

More information:

  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Reddit
  • TwitThis
  • Sphinn
  • BlinkList
  • Furl
  • Mixx
  • NewsVine
  • Slashdot
  • Ma.gnolia
  • Facebook
  • Google
  • E-mail this story to a friend!

No Comments, Comment or Ping

Reply to “wp_list_cats() children=0 Issue”

Sponsors