Do your WordPress URLs contain the strange v=xxxx string? One of our readers recently inquired about how to remove the v=xxxx string from WordPress URLs. This string is made up of seemingly random letters and numbers that you add to your permalinks as a parameter. We’ll show you how to remove the v=xxxx string from your WordPress URLs quickly and easily in this article.

Why Do Your WordPress URLs Have the v=XXXX String?

This string is found on WooCommerce-powered websites. It is a feature of the plugin, not a bug or an error.

This string’s purpose is to assist WooCommerce in calculating tax and shipping based on a user’s location. The string aids compatibility with WordPress caching plugins such as WP Super Cache and W3 Total Cache.

If you don’t need to calculate shipping and taxes for different locations, you probably enabled this feature by accident.

Let’s look at how to turn it off and get rid of the random v=xxxxxx strings from your WordPress URLs.

WordPress URLs with the v=xxxx String removed

To begin, go to the WooCommerce » Settings page after logging into your WordPress admin area.

Scroll down to the ‘Default customer location’ option under the General tab.

‘Geolocate (with page caching support)’ would be selected. Either ‘No location by default’ or ‘Shop base address’ must be selected.

Do not fail to save your changes by selecting “ the Save Changes button.

If you’re using a caching plugin, you’ll need to clear the cache in WordPress. You can now visit your website, and the geolocation string will no longer appear in your WordPress URLs.


How to GeoLocate a Default Location Without Using a URL?

Select the ‘Geolocate’ option in the ‘Default customer location’ setting to do so.

However, because of the previously cached page, this option is incompatible with static caching plugins, and users will see incorrect shipping and tax information.

It’s not a good idea to run WooCommerce without caching because it will slow down your site’s speed and performance.

If you need to use Geolocate to calculate shipping and taxes on the fly, you’ll have to live with the ugly v=xxxx string in your WordPress URLs for the time being.

We hope that this article demonstrated how to remove the v=xxxx string from WordPress URLs.

If you liked this post, please find and follow us on InstagramTwitter and Facebook.