Change old URLs after the domain change

Two possible easy ways to replace Old website URL to New Website URL: 1/ Directly replace in SQL file: Export the database and open SQL file. Manually find and replace old website URL with new website URL. Once replace is done, save and import database again. 2/ Use Migrate DB plugin: Use the third-party WordPress … Read more

wp_posts – guid update

The GUID should not be used to generate any URLs for the site (caveat below), so it shouldn’t hurt to leave them as they are… unless some badly designed plugin decides that GUIDs are a great shortcut to getting an URL. What the GUID is, is a globally unique identifier– global as in “throughout all … Read more

How to change all the guid in posts table?

It should be something like: UPDATE wp_posts SET guid = REPLACE(guid, ‘oldurl.com’, ‘newurl.com’) WHERE guid LIKE ‘http://oldurl.com/%’; oldurl.com – Previous URL shown in wordpress settings > general options newurl.com – New URL

Problem with guids and absolute links

1) The GUID is exactly that — a GUID. It’s used to uniquely identify the post. If you need to link to a post, then use get_permalink( $post_ID ) ($post_ID is optional) (link: get_permalink). 2) Not without a plugin, no. There’s talk of using an image shortcode for 3.1 though, or maybe 3.2. In the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)