- WordPress 5 Complete
- Karol Król
- 232字
- 2021-07-02 12:36:53
Pretty post permalink
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 permalink, or slug.
One of the most accurate definitions of what a post slug is comes from the WordPress Codex itself. The resource 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/my-top-3-favorite-dishes/, where the last part —my-top-3-favorite-dishes, is the slug. Just like the official definition says, WordPress chooses the slug by taking my post title, making it all lowercase, removing all punctuation, and replacing spaces with dashes. If I'd prefer it to be something else, such as 3-favorite-dishes, I can change it by going to the Document tab of the settings sidebar and looking for the section labeled Permalink:

Readable URLs are something that Google Search loves, so using them helps to optimize your site for the search engines. It also helps users to figure out what a post is about before clicking on the URL.
- EJB 3.1從入門到精通
- SEO 20日
- 計(jì)算機(jī)網(wǎng)絡(luò)與數(shù)據(jù)通信
- 物聯(lián)網(wǎng)信息安全
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2015年中國互聯(lián)網(wǎng)安全大會(huì)文集
- 大話社交網(wǎng)絡(luò)
- 中小型局域網(wǎng)組建、管理與維護(hù)實(shí)戰(zhàn)
- C/C++串口通信:典型應(yīng)用實(shí)例編程實(shí)踐
- OMNeT++與網(wǎng)絡(luò)仿真
- 端到端QoS網(wǎng)絡(luò)設(shè)計(jì)
- 一本書讀懂物聯(lián)網(wǎng)
- 組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理
- 云計(jì)算技術(shù)與標(biāo)準(zhǔn)化
- 深入理解計(jì)算機(jī)網(wǎng)絡(luò)
- 新媒體交互藝術(shù)