Support » Themes and Templates » How wp_list_categories to show cat with more than one word.

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

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

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

    Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    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”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How wp_list_categories to show cat with more than one word.’ is closed to new replies.