WordPress.org

Ready to get started?Download WordPress

Forums

Wiki quesiton re: wp_list_cats() (4 posts)

  1. ccheaton
    Member
    Posted 10 years ago #

    According to the wiki, one of the default arguments for:

    <?php wp_list_cats('arguments'); ?>

    is:

    'all' - string - Text to display for the option to show all categories (default is "All")

    On my site, I do not get the option to view all. Here's the site:
    http://www.publichealthcenter.com/organizations/organizations.php
    I have tried several permutations, including:
    <?php wp_list_cats('hide_empty=0&optioncount=1','all'); ?>
    and
    <?php wp_list_cats('all&hide_empty=0&optioncount=1'); ?>
    What's the trick to getting that option to return?

  2. codergurl
    Member
    Posted 10 years ago #

    <?php wp_list_cats('optionall=1&all=All&hide_empty=0&optioncount=1'); ?>

  3. ccheaton
    Member
    Posted 10 years ago #

    Ok, cool, and Thanks! I just didn't know the proper syntax.
    As a followup, what do I set the Read options to for it to display all of them? It still follows the options that I have set in the admin panel and will only display the most recent x # that I specify and/or days worth.
    I don't really want to pull the entire list each time somebody hits the page, but I do want to pull the entire list if somebody clicks on ViewAll.

  4. ccheaton
    Member
    Posted 10 years ago #

    Maybe I should just do it paged?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.