WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove Categories from php wp_list_categories() (4 posts)

  1. paulypants
    Member
    Posted 2 years ago #

    It lists categories twice. Once where I manually coded it and by itself. How do I get rid of the second one permanently?

    http://pau1.me

    I know I have to edit one of the main .phps just forgot which one and where to delete echo categories.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    http://codex.wordpress.org/Template_Tags/wp_list_categories

    have you tried:

    <ul><?php wp_list_categories('title_li='); ?></ul>

    you might need to reconsider the coding of your sidebar as it is generating quite a bit of invalid html code:
    http://validator.w3.org/check?uri=http%3A%2F%2Fpau1.me%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

  3. paulypants
    Member
    Posted 2 years ago #

    Thanks!!!! I'll reconsider coding when something goes wrong I get intrest but currently I'm okay with it right now. Thanks for the suggestion though and thanks for the info.

  4. paulypants
    Member
    Posted 2 years ago #

    Oh got what you mean. Recoded to w3 standards. Thanks for the heads up.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.