Recently, one of our readers asked us:
What should be done to get rid of the numbers that are usually present by default on all the article and page links of my WordPress blog ?
In other words how to change the link structure (Permaliens) from his WordPress website.
Indeed, by default, WordPress uses the identifiers (which are numbers), in order to access content via the URL.
This practice unfortunately has the merit of being very bad, especially for the SEO Google. In other cases, WordPress will add a " -2 After each publication name, page, category, or tag in the " slug Of the page (URL).
In this article, we are going to show you how to change your permalinks to get rid of the numbers in your WordPress URLs.
But, if you've never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog
But back to why we are here.
The structure of Permalinks
WordPress has built-in support, which allows you to modify your link structure. All you have to do is navigate to the location " Settings >> Permalinks And choose a format for your links. There are many options there.
Discover also with us How to create custom Permalinks on WordPress
We recommend that you choose a URL structure that displays the post title in the URL, as it is very useful in SEO and it allows visitors to discover your blog structure in search engines.
Once you have completed your changes, save them.
WordPress will automatically change the URLs of all your posts, even older ones that will now become unavailable in their current form. Don't worry, if your permalinks were in the former form
(example: http:// yourblog.com /?= 10 )
redirects will be automatic to the new form
(example: http:// votreblog.com /Title-of-the-page).
Even if you use better Permalinks, you may still want to get rid of the numbers in your URL. One of the reasons for this urge is that when you publish an article that does not have a title, WordPress will use a process to assign a link to the post.
Read also: How to publish your articles by email on WordPress
Remember, WordPress chooses the title of your post or page in the URL of your post or page, if the latter does not have a title, WordPress uses its identifier (ID) in the URL. You can manually ask WordPress what to use in the URL instead of the post or page number.
Discover also: How to schedule posting articles to your WordPress blog
Right below the post or page title, you'll see your post's URL with a " Edit " beside. By clicking on the button, the URL will be editable. This modifiable part is called " post-slug " You can enter the text you want to use as " post-slug In the URL.
Note: You can only add letters, numbers and dashes in the URL slug.
Duplicate messages and pages.
Sometimes even when you change the slug personalized, the text -2 »Continues to be added to your URLs. For example, you create a new post, and your URL looks like this:
Now you want to get rid of the " -2 So that the link ends rather like this /help ". This problem occurs when you have the same slug already in use.
Here too for you 5 WordPress plugins to visually edit CSS to discover absolutely.
Consult all your articles and pages, to make sure that no other article uses the same slug. If you find one then you should delete it unless you are still using it.
More often, you won't find an active page with the same slug.
Check your recycle bin. Because when an article or WordPress page is moved to the trash, it is not entirely deleted. It will remain in the recycle bin for 30 days before being permanently deleted.
This is a measure to give you an option to restore the deleted article or page if you accidentally deleted them.
As long as the publication or page remains in the trash, the slug of this publication can not be used. So to use it again you need to delete the article using this " slug », From the recycle bin. Once you have done this you should be able to change your " slug As stated above and get rid of the text " -2 ».
Read also our article on 5 WordPress plugins to better manage your newsletter
This technique also works for categories and tags.
Discover also some themes and premium WordPress plugins
You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.
We offer you here some premium WordPress plugins that will help you do that.
1. WP Rocket
WP Rocket is the best WordPress plugin premium caching on the market. This is the simplest and most beginner-friendly caching plugin, which is very useful if you don't know the technical terms used for different caching options.
It allows users to instantly cache their website with one click. Its robot automatically retrieves your WordPress pages to build up the cache, then it automatically activates recommended WordPress caching settings, such as gzip compression, page cache, and cache preloading.
WP Rocket also includes optional features that you can enable to further improve performance. What includes Lazy Loading images, support for CDN, DNS prefetching, minification, etc ...
2. Zoom Gallery
Zoom Gallery is a WordPress Plugin premium powerful and responsive that will help you create a wonderful gallery of images in your website, with the aim of presenting your images in the most beautiful and intuitive way.
This gallery will be ideal for anyone looking to post many photos on their website in a grid layout. Its code is clean and light, so its installation will not affect the performance of your website.
Increase your knowledge in slider by consulting our 5 excellent premium WordPress plugins to add a slider
Its features include: compatibility with the Visual Composer plugin, a 100% responsive layout, quick and easy installation, intuitive handling and much more
3. Yellow Pencil: Visual CSS Style Editor
No coding knowledge is required. However, the WordPress plugin has a good CSS editor for those who like to code. You can code live with this editor and customize your CSS.
Find out about other recommended resources to help you build and manage your website.
- 9 WordPress plugins to customize your homepage
- 10 WordPress plugins to create and manage an educational website
- 10 WooCommerce plugins to create shipping scenarios
- 5 critical WordPress plugins to boost your income
Here ! That's it for this article. We hope this article has helped you get rid of the numbers in your URLs WordPress. If you have suggestions or remarks, leave them in our section Comments.
Do not hesitate to share with your friends on your favorite social networks.