WordPress.org

Ready to get started?Download WordPress

Forums

Category tags: Is this new? (2 posts)

  1. KarlB
    Member
    Posted 10 years ago #

    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 :)
    Karl

  2. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    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. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.