What is slug in wordpress?

What is slug in wordpress?

A slug is a few words which comes after your domain name. slugs are usually a URL friendly version of the post( Where has been automatically generated by wordpress ), but a slug can be anything you like, slug are meant to be used with permalink as they help describe what the content in the URL is

For e.g.: www.example.com/what-is-slug-in-wordpress/

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

Wordpress sets the slugs are automatically, but its not important to leave it like that because the automatically generated slugs are not perfect or friendly but search engines and humans.

The wordpress already created rules to write the slug. the wordpress understand the slug and automatically change the spaces with dashes and allowed only lowercase letters.

How to set your post slug?

You can set your post's slug while writing or editing your post.

  • First of all go to the post which you can write or change slug.
  • Then you see in the right hand side permalink option.
  • In which you can set the slug.(remember the slug is user and search engine friendly).



When you set the slug, you you must know the below things:-

  • The words you use to write the slug must be search engine and user friendly.
  • Keep the words simple yet descriptive.

Comments

Post a Comment

Popular posts from this blog

Why entrance animation not working in Elementor?

Why position relative leaves empty space below the div?

What is difference between GET and POST methods in php?