How do I change my GUID in WordPress?

How do I change my GUID in WordPress?

A simple way to do it is to use the MySQL ‘REPLACE’ function to change th domain name in the GUID column in the ‘wp_posts’ table. The following code shows a way to accomplish the same. This will replace all GUID column values in the wp_posts table having ‘domain1.com’ as a url with ‘domain2.com’.

Can you change your GUID?

What is a GUID? GUID is an acronym for Globally Unique Identifier. It’s an ID that can be assigned to something which will never change and can always be trusted to point to the same thing.

How do I change the table prefix in WordPress?

Open your database in PhpMyAdmin. Click on the database name in the menu to the left to unfold all tables. Select all tables that start with wp_; you should have 12 in total. Click With selected to open the drop-down menu and select Replace table prefix.

Why does my WordPress post GUID not change?

I’m currently doing some testing on wordpress. In a recent test I found out that when changing the site url in the settings menu from domain a, to domain b. In the actual mysql table, the guid attribute in the posts table doesnt change. example: site created on url: http://10.0.0.31/wptest1, original GUID example: http://10.0.0.31/wptest1/?p=1

What does GUID mean in MySQL in WordPress?

In the actual mysql table, the guid attribute in the posts table doesnt change. example: site created on url: http://10.0.0.31/wptest1, original GUID example: http://10.0.0.31/wptest1/?p=1 We are afraid that this could cause trouble in the future and my boss and I are agreeing that this would be a major bug.

Do you need a staging URL for a GUID?

You don’t really want your GUIDs to be a dev or staging URL. It probably wouldn’t hurt anything, but it certainly isn’t reassuring to see dev and staging URLs in a live database.

Do you need to change the GUID in ACF?

Think of the GUID as a unique hash. Altering it will mean that feedreaders will suddenly display all your content in the user’s reader again as new content ( read more ). However, the guid is used by the Advanced Custom Fields Relationship field to relate other posts, so if you are using ACF, you should most definitely change the guid.