What is a slug in WordPress?
A slug in WordPress is nothing but some words that best describe a page or post. These are usually a post title optimized in a URL friendly manner, but it could be anything of your choice. It basically describes the content at that particular URL contains. You can check out http://codex.wordpress.org/Glossary#Slug for getting the detailed definition of this term. You need to use premium WordPress themes along with nice domain and hosting packages to make best use of your WordPress powered site.
A WordPress slug is nothing more than a few words, which you choose, to describe a post, page, category, or tag within WordPress. These words then appear as part of the URL (or Permalink) directing visitors to that content. Or in simple words, a slug is a URL-friendly version of your post or page title.
It’s the part that comes after your main domain name. For example:
https://www.abc.com/what-is-slug-wordpress/
I’ve bold the part that is the slug. It’s only the end piece of the URL.
When WordPress (or other platforms) create a slug from your post or page title, they usually follow a few rules:
- Converted to all lowercase.
- Spaces are replaced with dashes.
- Special characters and symbols are removed.
There are slugs for all public-facing parts of WordPress. They exist for posts, pages, categories, and tags.
WordPress slug is a word or phrase that you select in order to describe the post, page, or category. WordPress slug is generated automatically by WordPress from the title of the post.