官术网_书友最值得收藏!

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/, 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 in the area just below the post's title:

Just click on Edit to change the slug. Readable URLs are something that Google Search loves, so using them helps to optimize your site for search engines. It also helps users figure out what a post is about before clicking on the URL.

主站蜘蛛池模板: 龙江县| 乌拉特后旗| 肥西县| 定襄县| 林芝县| 南平市| 华宁县| 固安县| 潮安县| 仲巴县| 襄汾县| 常山县| 蒙城县| 巴塘县| 安西县| 芜湖市| 嫩江县| 金湖县| 江山市| 滨海县| 日照市| 凤台县| 长宁区| 招远市| 吉林省| 鸡东县| 金秀| 汉阴县| 伊川县| 治县。| 青岛市| 朝阳县| 宁晋县| 马尔康县| 金溪县| 博客| 民权县| 星子县| 墨玉县| 德安县| 安宁市|