What is Slug in WordPress?
WordPress Slug Explained
Due to the rise of the technology industry that we are observing in the last decades, especially the last one, Search Engines are becoming more and more substantial factor for business success. If the search engine doesn’t show your website, it could as well not exist for most of your potential customers. Therefore you need to take care equally for your content and for it to be relevant to the users’ queries in the Search Engines.
A small but important step in that direction is understanding permalinks and slugs.
What Exactly is a WordPress slug?
The slug, being it a category or post slug, is building part of the permalink. What is permalink?
The slug is that part of the permalink that identifies the exact page, post or category. Say, you are writing an article about the polar bears. WordPress will automatically generate the slug, using the title. But you can easily change it to whatever you want. Of course, we highly recommend keeping the slug relevant to the title of the article. If the title you’ve chosen is something like Basic Facts About Polar Bears you can change the slug of the post to say /polar-bears/. So, when a user enters the article he will see the title, but the post will be located at www.yourgreensite.com/polar-bears/.
How to Edit Post Slug in WordPress?
You have the option to change the post slug at any time. We highly recommend to choose it while creating the post or the page and never change it. Except in case you’ve misspelled it the best practice is not to change the post slug and permalink for that matter. Even if you misspelled it, especially if the post is old it is better to leave it as it is.
On the other hand, if you want to change the post slug that was created automatically out of the post title, you can do that on the same page, and at the same time that you are creating the content in.
Right after the post title bar, there is information and link to the newly created content. It says Permalink: domainname.com/category-name/post-slug. And just next to it there is an Edit button. If you are not satisfied with the automatically generated post slug, click that button and change it to your liking. Bear in mind you need to use dashes “-“ instead of spaces.
How to Optimize the Post Slug?
As we mentioned, the slug’s structure is really important for the Search Engines. People are searching in words, not numbers. Your content is most likely also written in words, except you have a blog dedicated to the beautiful science, called mathematics.
After you’ve changed the permalink to end with the post name, the post slug will be automatically generated out of the title of the article. And you will be able to change it. The slug, as you already know, should be related to the content and the title of the article. It should be keyword rich. And last but not the least as short and meaningful, as possible. You should leave the slug to be easily understandable but in the same time not too long.