WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_list_pages links point to old location (2 posts)

  1. zaqedc
    Member
    Posted 3 years ago #

    I have a copy of a wordpress site running locally. Everything is going smoothly with the local site and all pages/images diplay correctly. The problem is that the menu links, generated with the wp_list_pages function, link to the pages of the other, live site instead of the local copy I have running. Here is the code from the header:

    <ul id="pagesup">
    <li
    			 <?php if ( is_home() ) echo"class=\"current_page_item\""?>
    			 ></li>
    		          <?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&exclude=158,278'); ?>
    			  <li><?php get_search_form(); ?></li>
    </ul>

    I've looked though the function reference page for wp_list_pages, but not being in any way adept at PHP I've likely missed, or failed to understand something about the function.

    Does anyone know if there is a means to make these links direct to the local pages?

  2. zaqedc
    Member
    Posted 3 years ago #

    Resolved - it is nothing to do with the site, but permalinks associated with the pages it's creating links for. Just needed to update the site URL under settings.

Topic Closed

This topic has been closed to new replies.

About this Topic