WordPress.org

Ready to get started?Download WordPress

Forums

How wp_list_categories to show cat with more than one word. (4 posts)

  1. Yermandu
    Member
    Posted 4 years ago #

    The problem is i want Show 5 specific categories.

    3 Categories have just one word, but 2 categories have "two words" or more.

    I want show For Example:

        |Orange|Limon|Pie Apple|Table Of Contents Nutrients|Water|

    But is showed:

        |Orange|Limon|Water|

    The Categories Pie Apple and Table Of Contents Nutrients are not display.

    I use the follow code:
    wp_list_categories('orderby=name&show_count=0&include=16,32,365,27,166,42&title_li=');

    How i can resolve this?

  2. You can have wp_list_categories list the category description instead of the title, and other options. See the docs.

  3. Yermandu
    Member
    Posted 4 years ago #

    Hmmm, can you explain more?
    I don understand how i change change description instead of title.

  4. Sorry - missed the continuation of this; what I wrote above is wrong. Only other thing I can think of is if you have spaces in your category slugs. Category names can be "My One Category". Category slugs have to be "my-one-category"

Topic Closed

This topic has been closed to new replies.

About this Topic