Tag Info

New answers tagged


If you're porting your WP db from one URL structure, you will come across issues where absolute paths, such as image urls will no longer work. One solution is to export the DB from the old site, open it in a an editor and do a search replace like so: "your-oldsite.com/wordpress/whatever" to "Your-new-site.com/" . And then import the DB into the new ...


Turns out the problem was with WP_CONTENT_URL, defined inside wp-config.php: define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/lab/WordPress-Skeleton/content' ); It seems that $_SERVER['HTTP_HOST'] is returning an incomplete path (only localhost without the folder). Since I'm using version control and using a local-config.php to define some ...

Top 50 recent answers are included