Support » Fixing WordPress » Category tags: Is this new?

  • Hi,
    I just ran todays (14/02/03) build and noticed (what appears to me) a new tag ‘<pre><?php wp_list_cats(); ?></pre>
    What does this omprove on over , say,
    <pre><?php list_cats(0, ‘All’, ‘name’); ?></pre>
    Is it just that you now have a list all cats link?
    Did you ever consider have a category header unlinked with the subs linked?
    Great work none the less 🙂

Viewing 1 replies (of 1 total)
  • Ryan Boren


    WordPress Dev

    The main difference is in the argument handling. wp_list_cats accepts a query string which is then run through parse_str(). This allows you to specify only those options you really want to set as opposed to having to specify all of them just so you can set the last one. It’s a means of doing named arguments rather than positional arguments.
    As for having an unlinked category header, what if that category contains posts? I guess there could be additional option that would allow one to choose between styles: hierarchies or DB style keywords. That is how the hierarchy vs. keyword debates that inevitably come up are usually resolved. Go keywords. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Category tags: Is this new?’ is closed to new replies.