Slug slasher for WordPress and Woocommerce

(1 customer review)


Buy any 3 plugins for a 20% discount (excludes sale items)

Current version 1.1.1

Updated to allow a checkbox so you can choose whether to apply Slug Slasher to Woocommerce URLs or WordPress URLs – or indeed to choose to customise both URLs. This update has been added to both versions of SlugSlasher.

Current versions:

1.0.1 for automatic customisation and bulk shortening of URLs
1.1.1 for manually run bulk changing and shortening or URLs.

Update: I’ve re-uploaded the first version of WordPress Slug Slasher after a few requests. Some people who are using scheduled imports into their WordPress and Woocommerce sites wanted the auto slug slasher option that was disabled in the 1.1 update.

 Version 1.0 can now be downloaded and used. Be aware that this is server heavy as the slug rewriters run every time a post is edited or published. This means if you auto import 50 posts or products at a time the slugs will be re-written 50 times.  If you are on cheap shared hosting then this will be an issue and you might get an email from your hosts about unfair use of server resources. Only use version 1.0 if you have a good hosting plan or even better run your own dedicated server.

Controlling URLs or slugs when importing into WordPress and Woocommerce

If, like me, you are a professional Amazon affiliate marketer – that is you make your living from selling products from Amazon on your collection of web sites – you know how difficult it is to get ranked in the search engines and especially Google. Making yourself different from other affiliate sites selling exactly the same things and importing the same information can be difficult.

One of the ways you can set yourself apart from the others is to change the slugs of your Woocommerce product pages. Doing them one by one is not an option, you really need to bulk change Woocommerce slugs if you import lots of products. I auto-import and also bulk import lots of amazon products into various web sites and regularly use this plugin after new imports to make the slugs much more search engine friendly.

Bulk change WordPress and Woocommerce slugs

Slugs or the URL of your product pages are taken into account in search rankings and if you have very long URLs then it can reduce the importance of each word. Slashing those slugs can boost the value of each of those words and differentiate yourself from other sellers or affiliates.

This plugin allows you to set the number of words in a slug and also the minimum number of characters in each word. You can also set a range of stop words that are removed when the slug is re-written. This lets you get rid of all those unimportant words that do nothing for SEO value such as; the, an, those etc.

If you don’t like the way it works you can reset the slugs back to WordPress default slugs were taken from the title.

Rewriting slugs in WordPress

This plugin interacts directly with your database. It looks for product post types which Woocommerce uses and then it rewrites the URLs directly.

The settings page include:

  • set the minimum number of characters per word
  • set the number of words per slug
  • set any stop word lists in a comma-separated list

You then need to select run slug rewrite and save.

To run the rewriter just click the rewrite button. You need to do this every time you bulk import products into your Woocommerce Amazon affiliate shop. You need to manually run this plugin when you want to make changes. In the first version, the slugs were automatically changed every time a product was imported but this added a lot of overhead to server resources and many shared hosting environments were unable to deal with the load. This way the process is run just once after you have bulk imported all your products.

If you decide this is not the plugin for you then just select reset to default slugs and save. Then click run and all your Woocommerce product pages will go back to the default values.

Bulk change URL of WordPress posts or Woocommerce products

After running the Slug Slasher process I recommend that you clear all of Woocommerce caching by going into the Woocommerce status and clicking on tools. Then run all the cleaning options especially the recount terms one. This will ensure that any lag in changing links is dealt with quickly especially resetting links in any Woocommerce shortcode calls.

You can see it in operation on this website by looking at the difference in Product titles and URLs. I’ve set a minimum character count of 3 letters and also filtered the, one, for words.

The slug for this product page has had for filtered out and checking the URL against the product title of Woocommerce Sort by Sale and the by has been filtered out in the URL.

Tutorial video on using Slug Slasher plugin for WordPress

Spread the love

1 review for Slug slasher for WordPress and Woocommerce

  1. Sally J.

    helps me control urls in my auto imports

Add a review

Your email address will not be published. Required fields are marked *