Forums

[resolved] wp_list_categories is adding a dot to url, not validating (3 posts)

  1. Matt Dunlap
    Member
    Posted 1 year ago #

    I'm trying to validate my code with IE. There is a problem with the way that wp_list_categories is creating links.

    Error:
    Bad value http://mattdunlap.org/./website-development for attribute href on element a: NON_INITIAL_DOT_SEGMENT in PATH.

    if you view my page source all my navigation links have the dot. How do I remove it?

    http://mattdunlap.org/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I can't see any malformed urls. Did you fix this?

  3. Matt Dunlap
    Member
    Posted 1 year ago #

    Thanks for looking esmi...

    While I was replying to you this morning, I found the issue.

    In my permalinks, I have the category base set to "." to remove the "category" from the url.

    hmmm... I want to keep category out of the url, but I also want to validate. I guess I'll add something to the function.php file to fix the wp_list_category problem with "." as category base.

Topic Closed

This topic has been closed to new replies.

About this Topic