Pretty post slug
We've already talked about tuning the permalinks settings of your site in Chapter 2, Getting Started with WordPress. Now is a good moment to expand on this knowledge and discuss a little something called the post slug. One of the most accurate definitions of what a post slug comes from the WordPress Codex itself. The one provided at https://codex.wordpress.org/Glossary#Post_Slug teaches us that the post slug is made from a few lowercase words separated by dashes, describing a post and usually derived from the post title to create a user-friendly permalink.
In other words, the post slug is what comes after your domain name in the post's URL. For example, my post about my top three favorite dishes uses this URL: http://localhost/wpc5/my-top-3-favorite-dishes/ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access