WordPress.org

Ready to get started?Download WordPress

Forums

How to display a link to "all" categories? (3 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I've installed v1.0.2 and changed the default category list code to:
    <?php list_cats(1, 'all', 'name', 'asc', 'index.php', 1, 0, 1, 1); ?>
    but it still doesn't work. Any ideas?
    Thanks!

  2. OperaManiac
    Member
    Posted 10 years ago #

    does not the original code show all the categories? :O(

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    Actually, the original template has the line
    <?php list_cats(0, 'All', 'name'); ?>
    the "0" meaning don't display the "All" link.
    That is, if it worked. I'm a PHP noob, but looking at the template-functions.php file, it *seems* the function list_cats() doesn't even do any checking for $optionall -- dropdown_cats() does.
    All in all, not a big deal, as I can hard code in my own link. But, I was just wondering if I was doing something wrong. Or if something really is a little off in the blakey release.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.