WordPress

Want to know how to remove digits from WordPress blog posts and URLs? 

How to Delete Numbers from URLs Created with WordPress

WordPress provides many URL formats for your website, such as post ID numbers, year, day, and post title. Having numeric URLs is detrimental to SEO and the user experience. 

This post will demonstrate how to remove digits from WordPress URLs. 

Why Are WordPress URLs Without Numbers? 

When configuring the URLs for your WordPress website, they must be SEO-friendly and assist visitors in understanding your content. 

Including digits in a URL has no negative impact on your WordPress SEO or keyword rankings. Nonetheless, it makes it more challenging for search engines to comprehend the article. Similarly, your users may have difficulty locating the appropriate material if it solely comprises numbers. 

In this example, there are no numbers in the URL, which is SEO-friendly: 

https://www.wpbeginner.com/start-a-wordpress-blog/

Alternatively, this is how your URL would seem if it had simply numbers, such as a post ID: 

https://www.wpbeginner.com/?p=11245

Links with keywords or phrases are simpler to comprehend and locate than URLs with numbers. 

Removing digits from URLs also eliminates the need to redirect blog posts whenever the content is changed. For instance, it is an SEO best practice to remove the year, date, and a total number of items from the URL of a list article. 

Consequently, let’s examine how to remove numerals from a WordPress URL. 

Removing Numbers from the Permalink URL in WordPress 

WordPress provides built-in support for URL structures that are SEO-friendly. 

Go to Settings » Permalinks in the WordPress administration area and choose a URL structure for your site. 

You will see many possibilities for permalinks. These include a Plain format in which the post ID is included in the URL, and day and name structures, month and name structures, and post name structures. 

We suggest using the ‘Post name’ structure, which displays your post’s title in the URL since it is SEO-friendly and will assist search engines index your site. 

After configuring permalinks, you must save your settings. 

WordPress will now update URLs for all of your past articles automatically. WordPress will automatically redirect those people to the new URLs if you have posted the previous URLs elsewhere. 

Eliminating Numbers from Post and Page Slugs 

Even if you are now utilizing permalinks, you may still choose to remove digits from the URL of your blog post. The most typical cause is publishing a post with no title or a title that comprises a number, such as a year. 

Remember that WordPress selects the text to show in the URL based on the title of your post, so if your article does not have a title or has a year, WordPress will use the year in the URL. Instead of the post number, you may explicitly provide the URL in WordPress. 

Remove Numbers from WordPress Block Editor URL Slug 

You may change your blog post or page to modify the URL of any website content. 

You can access the options panel in the WordPress block editor by clicking the gear icon. 

Next, in the settings panel, go down to the Permalink area and modify the URL Slug. The post ID will be shown by default when a blog post lacks a title. 

WordPress uses the current post ID (45) as the URL slug in the image above. 

You may adjust this, or you can enter a title for your blog post, and the URL slug will be updated to match. 

You should publish or update your blog post as soon as you finish it. 

Remove Numbers from WordPress Classic Editor URL Slug 

Using the WordPress traditional editor, you must modify your post’s URL and remove any digits. 

Starting a blog involves creating a new post or updating an existing one. 

When using the Classic editor, the post’s URL and an ‘Edit’ button will appear directly below the post title. 

By clicking the edit button, the URL becomes editable. This modifiable portion is known as the post slug. You may put the desired post slug content in the URL and delete the digits. 

Articles and Pages 

Occasionally, even after you modify the custom slug, the -2 is still appended to your URLs. For instance, if you build a new about page, the  

URL will appear as follows: 

https://yoursite.com/about-2/

Wouldn’t you want to eliminate that -2 and have it just read /about/? This issue happens when the identical slug has previously been used. 

Check that none of your posts and pages have the same slug (e.g., /about/). If you discover one, you must remove it unless you intend to use it. Typically, you will not locate an active page with the same slug. 

This is the time to check the Trash folder. When you trash a post or page in WordPress, it is not completely removed. It remains in the trash for 30 days before being eliminated forever. This is done, so you have the opportunity to restore unintentionally deleted discarded things. 

The slug cannot be re-used as long as the post or page is in the trash. Therefore, if you want to reuse the /about/ slug, you must remove the About page in the trash. Your slug will be updated by following the above steps. 

Want to know how to remove digits from WordPress blog posts and URLs? 

WordPress provides many URL formats for your website, such as post ID numbers, year, day, and post title. Having numeric URLs is detrimental to SEO and the user experience. 

This post will demonstrate how to remove digits from WordPress URLs. 

Why Are WordPress URLs Without Numbers? 

When configuring the URLs for your WordPress website, they must be SEO-friendly and assist visitors in understanding your content. 

Including digits in a URL has no negative impact on your WordPress SEO or keyword rankings. Nonetheless, it makes it more challenging for search engines to comprehend the article. Similarly, your users may have difficulty locating the appropriate material if it solely comprises numbers. 

In this example, there are no numbers in the URL, which is SEO-friendly: 

https://www.wpbeginner.com/start-a-wordpress-blog/

Alternatively, this is how your URL would seem if it had simply numbers, such as a post ID: 

https://www.wpbeginner.com/?p=11245

Links with keywords or phrases are simpler to comprehend and locate than URLs with numbers. 

Removing digits from URLs also eliminates the need to redirect blog posts whenever the content is changed. For instance, it is an SEO best practice to remove the year, date, and a total number of items from the URL of a list article. 

Consequently, let’s examine how to remove numerals from a WordPress URL. 

Removing Numbers from the Permalink URL in WordPress 

WordPress provides built-in support for URL structures that are SEO-friendly. 

Go to Settings » Permalinks in the WordPress administration area and choose a URL structure for your site. 

You will see many possibilities for permalinks. These include a Plain format in which the post ID is included in the URL, and day and name structures, month and name structures, and post name structures. 

We suggest using the ‘Post name’ structure, which displays your post’s title in the URL since it is SEO-friendly and will assist search engines index your site. 

After configuring permalinks, you must save your settings. 

WordPress will now update URLs for all of your past articles automatically. WordPress will automatically redirect those people to the new URLs if you have posted the previous URLs elsewhere. 

Eliminating Numbers from Post and Page Slugs 

Even if you are now utilizing permalinks, you may still choose to remove digits from the URL of your blog post. The most typical cause is publishing a post with no title or a title that comprises a number, such as a year. 

Remember that WordPress selects the text to show in the URL based on the title of your post, so if your article does not have a title or has a year, WordPress will use the year in the URL. Instead of the post number, you may explicitly provide the URL in WordPress. 

Remove Numbers from WordPress Block Editor URL Slug 

You may change your blog post or page to modify the URL of any website content. 

You can access the options panel in the WordPress block editor by clicking the gear icon. 

Next, in the settings panel, go down to the Permalink area and modify the URL Slug. The post ID will be shown by default when a blog post lacks a title. 

WordPress uses the current post ID (45) as the URL slug in the image above. 

You may adjust this, or you can enter a title for your blog post, and the URL slug will be updated to match. 

You should publish or update your blog post as soon as you finish it. 

Remove Numbers from WordPress Classic Editor URL Slug 

Using the WordPress traditional editor, you must modify your post’s URL and remove any digits. 

Starting a blog involves creating a new post or updating an existing one. 

When using the Classic editor, the post’s URL and an ‘Edit’ button will appear directly below the post title. 

By clicking the edit button, the URL becomes editable. This modifiable portion is known as the post slug. You may put the desired post slug content in the URL and delete the digits. 

Articles and Pages 

Occasionally, even after you modify the custom slug, the -2 is still appended to your URLs. For instance, if you build a new about page, the  

URL will appear as follows: 

https://yoursite.com/about-2/

Wouldn’t you want to eliminate that -2 and have it just read /about/? This issue happens when the identical slug has previously been used. 

Check that none of your posts and pages have the same slug (e.g., /about/). If you discover one, you must remove it unless you intend to use it. Typically, you will not locate an active page with the same slug. 

This is the time to check the Trash folder. When you trash a post or page in WordPress, it is not completely removed. It remains in the trash for 30 days before being eliminated forever. This is done, so you have the opportunity to restore unintentionally deleted discarded things. 

The slug cannot be re-used as long as the post or page is in the trash. Therefore, if you want to reuse the /about/ slug, you must remove the About page in the trash. Your slug will be updated by following the above steps. 

Related Posts

Creating a Tabbed Settings Page in a WordPress Plugin Using WPPB 10 Essential WordPress Plugins for WordPressers: A Guide to Optimizing Your Website Installing a WordPress Plugin: A Step-by-Step Guide for Newbies How to Create a Custom Contact Form in WordPress What is the best way to delete all products in WooCommerce? How to fix WordPress There has been a critical error on this website The Best Places to Get Royalty-Free Images for Your WordPress Blog Articles  How To Prevent WordPress Blog Content Scraping For Beginners  How To Plan Your WordPress Posts  How To Place Captions On Images In WordPress  WordPress Blog Email Newsletters: What, Why, and How  Are you new to WordPress and curious about managed WordPress hosting?  What You Can Do To Participate In The WordPress Project  What Is A Web Blog, And How Does It Differ From A Website?  What Effect Do Your Web Host’s PHP Updates Have on WordPress Sites?  What Are The Restrictions Of The WordPress. Com Platform?  The Best Places to Get Royalty-Free Images for Your WordPress Blog Articles  Step-by-Step Guide for Installing and Configuring WP Super Cache for New Users  Do you want your WordPress content to have images next to each other?  How to Select the Ideal Color Scheme for Your WordPress Website  How To Pick The Perfect Domain Name  How to Repair the WordPress Error Establishing a Database Connection  How To Fix Typical Image Problems In WordPress  How to Enlarge Images Without Compromising Quality  How to Download and Install Plugins and Themes for WordPress from GitHub  How to Delete Numbers from URLs Created with WordPress  The Step-By-Step Guide To Uploading PDF Files To Your WordPress Website The Step-by-Step Guide to Linking to an Email Address in WordPress How Does Changing Your WordPress Theme Affect Things?  Getting Started With WordPress Comment Moderation: A Beginner’s Guide  How to Generate Branded Short URLs for Your WordPress Blog: A Step-by-Step Guide WordPress Categories Vs. Tags: How To Sort Your Content For SEO Step-by-Step Guide for New WordPress Users on How to Correctly Uninstall Plugins in WordPress WordPress Theme Framework: What Is It? All That Is Good, All That Is Bad  Images Theft: 4 Approaches to Protect Them in WordPress 7 Crucial Tips for Using WordPress Shortcodes How to Use File Transfer Protocol (FTP) to Upload Files to WordPress for Newbies 5 Easy Ways to Use WordPress to Get More Facebook Likes  How To Setup A WordPress Theme For Beginners How To Get Free WordPress Training In A Week How To Detect and Stop a DDoS Attack Against WordPress How To Install A WordPress Plugin: A Step-By-Step Guide For Newbies How to Delete All of Your Past DNS Records (Chrome, Mac, Windows) How to Create a Site-Specific WordPress Plugin How to Copyright And Trademark Your Blog Name and Logo How To Conduct An Appropriate Website Speed Test (8 Best Tools) To-Do List: 7 Items Before Going Public Your WordPress Site Fixing A Hacked WordPress Website: A Guide For Complete Beginners Tips For Deleting And Removing A WordPress Theme (Step By Step) How to Merge Two WordPress Websites Without Sacrificing Search Engine Optimization Comparing WordPress.Com With WordPress.Org: Which One Is Better? WordPress and GDPR Compliance: The Complete Guide – Everything You Need to Know Which One Is Better: A WordPress Plugin Or A Functions.php File? The Top 10 WordPress Bugs And How To Fix Them How To Making A Website Logo: Step-By-Step Instructions  11 Essential Pages Every WordPress Site Must Have In 2022 WordPress’s 15 Most Frustrating Issues and How to Fix Them WordPress vs. HTML Site- Which Website Design Is Best for Your Business? WordPress Users: 10 Email Marketing Mistakes to Avoid 5 Essential WordPress SEO Audit Checklist Items To Improve Your Rankings 2 Ways to Stop Users from Deactivating WordPress Plugins How to delete all the WooCommerce products with SQL Query? Pagination in WooCommerce: how to set it up? How to Add WooCommerce Product Categories to the Menu What’s the difference between WordPress.com and WordPress.org? How to apply WooCommerce Shortcodes to theme development How to skip the FTP credentials to install the theme and plugin on AWS EC2