• Resolved zaqedc

    (@zaqedc)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter zaqedc

    (@zaqedc)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_list_pages links point to old location’ is closed to new replies.