Tag Info

New answers tagged


You have to change the Site address (URL) and WordPress address (URI) through admin panel before moving the site to another url. In your case you can't do that to a live site, so you can try a tool like https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ to change the url from the dev site database. More: ...


If this is a single WordPress install, there are a couple database entries with your old domain. Specifically, siteurl and home within wp_posts. That said, if the dev URL is temporary, you can also set the following two constants in wp-config.php: define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); define('WP_SITEURL', WP_HOME . '/'); Provided that ...


Use the Post Object instead. When in the loop, do this: global $post; echo $post->post_name; That should do the trick.

Top 50 recent answers are included