Forums

[resolved] Question on wp_list_categories() (6 posts)

  1. dradra
    Member
    Posted 5 years ago #

    I have updated to WP2.1. When I changed wp_list_cats() to wp_list_categories(), I found an unexpected title of th categories "Categories". It is weird. Besides, I found WP added an extra pair of
    <ul> tag embracing the category list. Who could help to remove this title? Thanks a lot.

    [moderated: fixed tags]

  2. Otto
    Tech Ninja
    Posted 5 years ago #

    You need to put code on this forum between backtick marks, so we can see it.

    Also, read the documentation, it might have your answers:
    http://codex.wordpress.org/Template_Tags/wp_list_categories

  3. flick
    Member
    Posted 5 years ago #

    Hi Otto,
    I've skimmed the documentation briefly but as I"m not too familiar with WordPress, I was wondering if you could be a bit more specific please?
    Thanks :)
    Kind Regards
    Mosey

  4. Otto
    Tech Ninja
    Posted 5 years ago #

    Try this:
    wp_list_categories('title_li=');

    See if that does more what you were expecting it to do.

  5. flick
    Member
    Posted 5 years ago #

    Hi again,
    Yup it does! Thank you very much! I really appreciate it. :D

    Kind Regards
    Mosey

  6. dradra
    Member
    Posted 5 years ago #

    Thank you very much, Otto.

    Jerry

Topic Closed

This topic has been closed to new replies.

About this Topic