What is a WordPress Slug?

What is a WordPress Slug?

Reference Link: https://www.hostinger.com/tutorials/what-is-a-wordpress-slug/

Author: Domantas G.

Ever wondered what is a WordPress slug? In this article, you’ll learn the definition of a WordPress slug and how to set it in WordPress. We will also provide some tips for setting up user-friendly and SEO optimized slugs. Let’s get started.

What is a WordPress Slug?

A WordPress slug is a text which comes after your domain name as a part of your permalink that is leading to your content.

WordPress Slug comes after domain name

If you add a new post, WordPress automatically generates the slug based on your permalinks settings. You can go to Settings -> Permalinks and change how slugs are generated.

Although WordPress automatically sets the slug, it is not always recommended to leave it like that. The default slug may not be friendly for both search engines and humans.

How to set slugs in WordPress

Before setting your slug, you have to know the two basic rules:

  • Change spaces with dashes;
  • Only lowercase letters are allowed.

WordPress will automatically correct these rules for you. But, it will be better if you understand this before proceeding further.

WordPress Post Slug

You can set your post’s slug while writing or editing your post. Go below your post Title box, and find a Permalink URL. If you can’t find a permalink there, you need to enter your title first. After the permalink appears, you can edit your slug by clicking the Edit button. When you’re finished, click OK.

Set WordPress Post Slug

WordPress Page Slug

Similarly to a post slug, setting up page slug is fairly easy. The permalink URL of the page is also located below the page’s name box. Click Edit, type your page slug, and click OK.

Set WordPress Page Slug

Category and Tag Slug

WordPress automatically gives a slug for a new category or tag that you made. Yet, if you prefer to set your own slug manually, you need to create a category first and go back later.

For setting category slugs, you go to Posts and choose Categories. Find the category you’d like to edit and click the Edit button. Input your slug into the slug box and click Update to save the change.

Changing tag slugs is similar. Go to Posts and choose Tags. Find the tags you want to edit and click the Edit button. After you input your tag slug, make click Update to save the change.

Author Slug

If you have a news website or a website with many contributors, you can also create a slug for each author. Unfortunately, by default WordPress does not allow editing author slug. Therefore, you will need Edit Author Slug plugin. Once plugin is activated go to Users -> All Users. Pick the user and click Edit User, scroll down till Edit Author Slug options. Type in the desired slug and hit the Update User button to save the change.

Edit Author Slug

Tips for Setting WordPress Slugs

Target your SEO keywords

Many SEOs believe you can get better results in search engines if you include keywords you want to rank for in your URLs. Therefore, it is better if you have the keyword in your slug. You can even use your target keyword as your slug.

Keep it simple yet descriptive

Short slugs are more likely to rank in Google and are more user-friendly. Thus, it is better to make your slugs short and on point to your targeted keywords.

No stop words

We recommend cutting out the unnecessary words from your slugs, including stop words such as “a,” “the,” “and,” and other similar words. If you use the Yoast SEO plugin, you will be assisted in cutting out these words from your permalink.

Use Redirects

When you change WordPress slug, the whole URL changes. This means that users and search engines will not be able to find the content using old URL. If it happens that you need to change already existing slug, we recommend setting up 301 redirect from old to new slug.  You can easily do this with SEO Yoast or Redirection plugins.


So now you know that WordPress slug is a text that comes after your domain and is a part of your permalink. Optimizing and setting up the slug in every post, page, category, and tag can result in a more friendly website for both humans and search engines. We hope this article helped you to implement the best slug practices.

How to reinstall wordpress (The Correct Way)

How to reinstall wordpress (The Correct Way)

Reference Link: https://www.hostinger.com/tutorials/how-to-reinstall-wordpress

Author : Artūras B.

There might be several reasons on why you stumbled upon this article. Maybe you’re having issues with your WordPress website like errors you don’t know how to fix, or worse, maybe your site got hacked. Or, you just want a fresh start for your site. Whichever the reason, we got your back! Continue reading to find out how to reinstall WordPress.

There are two major ways to uninstall and reinstall WordPress. You can either reinstall WordPress while keeping all of your existing content or deleting all of your files and install a fresh new copy. We shall be looking at both ways of doing this, and then looking at all the different methods of doing so.

Now, whatever you decide to do, we highly recommend doing a backup of your WordPress files before attempting anything. You can do this by simply copying all of your WordPress files into your computer or a cloud drive. As you never know when something might go wrong, having a failsafe just in case is simply the best practice.

Reinstalling WordPress via Administrative Dashboard

This method both reinstalls and keeps all of your content and is probably the most straightforward. This is done using your WordPress dashboard. If you can’t access the dashboard, don’t fret! You will be able to do this manually using the FTP method which we will cover later on in the article.

In any case, using the dashboard is a real breeze. All you need to do is look at the sidebar, then click on Dashboard -> Updates and tap the Re-install Now button.

WordPress reinstall instructions

The process is fully automatic, all you need to do is wait several seconds and you’re all set.

Reinstalling WordPress using FTP

If pesky errors or whatever else is keeping you from accessing your dashboard, you can use the FTP method (or maybe you just simply prefer it). It’s a very similar method to the one mentioned above, the only difference is that using FTP, you will be doing the process manually instead of using a one-click installer.

Here’s a list of the steps to reinstall WordPress:

  1. Download a fresh copy of WordPress.
  2. Extract the ZIP file
  3. Upload all the files except the /wp-content/ folder

Now, let’s figure out how to actually do each step individually.

Start off by going to WordPress.org and downloading the latest version.

WordPress download pageOnce the download finishes, extract the contents of the ZIP file on your computer and deletethe wp-content folder. This step is crucial as otherwise, your content may be overwritten.

WordPress content folder deletion process

When that’s finished, you’ll need to connect to your account with FTP client and upload your files to where WordPress is installed. By default, it’s going to be your root folder named public or public_html. Whilst doing so a prompt will appear that states that the target file already exists. You will need to overwrite the existing files at that point.

WordPress overwrite existing files via FTP

What this does exactly is it replaces the core files for WordPress, making it a fresh new copy. And since you deleted the wp-content folder, your content files like themes and plugins won’t be altered.

Reinstalling WordPress using WP-CLI

WordPress can also be reinstalled using WP-CLI. It is a command line tool that is used to customize the installation of your WordPress. It’s capable of adding/removing users, categories, posts, inserting test data as well as replacing or just simply searching in the database. WP-CLI has more features, but we won’t be covering them here. And just below is a command line which you can freely use to reinstall WordPress without affecting themes and plugins. By the way, WP-CLI is fully installed and supported on all Hostinger WordPress hosting plans.

wp core download --skip-content --force

How to completely reinstall WordPress (delete all files)

Before saying any more, please bear in mind the following: using this method, all of your content files will be permanently deleted. Be absolutely sure there’s no content worth saving, as once this is done, you won’t be able to undo it.

You might want to this if you encountered WordPress errors you can’t fix for example. Maybe you just want a clean slate and start everything anew.

With that being out of the way there’s really only two steps involved in the process. First, delete all of your existing WordPress files. Secondly, install a fresh new copy using whichever method you prefer. It’s really that simple. To delete the files use a file manager or connect via FTP and delete the files that way.

WordPress delete all content via ftp for a fresh start

Deleting your existing WordPress database is not necessary, even you plan using a new one. However, if you want to completely start over, we don’t blame you! On Hostinger, you can delete the database by navigating to the MySQL Databases section.

Wordpress how to delete mysql databaseLikewise, you can use phpMyAdmin to Drop the database which also wipes out your database completely.

After that’s done, there will be nothing left. Now you can go ahead and start by installing a fresh WordPress copy as if it were a brand new website. Like with reinstalling WordPress itself, there are a few ways of doing this, either automatically or manually depending on your host. If you’re with a host like Hostinger, there’s a prepared 1-click auto installer that installs WordPress in a matter of seconds. Alternatively, you can do this manually which would set you back about 5 minutes. We have covered all ways you can install WordPress here. Congratulations, at this point you have an absolutely blank canvas for your website!


Taking all things into account, reinstalling WordPress is a pretty simple process. For a quick recap, here’s how:

  • By using the in-built WordPress dashboard’s Re-install now button.
  • By downloading and then uploading the WordPress files, while excluding the wp-content folder into your server.

And if you’re aiming for the clean slate approach, you just need to delete all the WordPress files and (or) the database. Then simply install a new copy with a method of your choosing.

We hope you enjoyed our guide and if you have any questions, please feel free to leave a comment down below.

Pin It on Pinterest