WordPress.org

Ready to get started?Download WordPress

Forums

URL Path Changes When in Category/Archive (2 posts)

  1. jbeltran
    Member
    Posted 5 years ago #

    Hi,

    I'm having some problems with the URL/paths whenever I go to the Categories or Archives page. More specifically, whenever I go to those pages, the URL/path of my navigation link changes.

    i.e.
    My about page link goes from mywebsite/about
    to mywebsite/category/about.

    The same thing applies to other links as well in that '/category' is attached to every URL.

    I'm not sure if the following info is relevant, but I manually coded the links to my pages (I coded the links in the sidebar.php file). Is this causing the problem? If it is, what can I do to fix it while retaining my manually coded links?

    Thanks!

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Is this causing the problem?

    Almost certainly.

    Use wp_list_pages() if you want the greatest flexibility and, if necessary, exclude pages that you don't want showing on your sidebar.

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

Topic Closed

This topic has been closed to new replies.

About this Topic