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

  1. zaqedc
    Posted 5 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">
    			 <?php if ( is_home() ) echo"class=\"current_page_item\""?>
    		          <?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&exclude=158,278'); ?>
    			  <li><?php get_search_form(); ?></li>

    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
    Posted 5 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