Friday, August 21, 2020

Choosing Permalink Structure in WordPress Site

Choosndex.php/yyyy/mm/dd/post-name/ Choosing permalink structure in WordPress For selecting appropriate permalink in WordPress Blog we can choose it from Dashboard. In WordPress it uses web URLs which includes question marks and numbers on it. But you can also create a custom permalink. But to select pre set permalink just follow the below steps- Step 1Log into yourWordPressaccountand go toDashboard Step 2From Dashboard click on -Settings-Permalinks Step 3From that page under Permalink Settings and locate Common Settings. Here you will see 6 options for WordPress permalink including Custom Structure. Default - Display only alphabet and number Day and name - Display only post year, month, date and title Month and name - Display only post year, month and title Numeric - Display only post Achieve and number Post name - Display only post title Custom Structure - You can display post Achieve, year, month, date and title according to your own way. Step 4 Just select any radio button to choose the permalink. In case of Custom Structure you have to ad permalink code manually. For custom structure use below example- You must add % after every permalink points. So make sure to end your structure with either %post_id% or %postname% (e.g. /%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post. %year% - The year of the post, four digits, for example 2015 %monthnum% - Month of the year, for example 04 %day% - Day of the month, for example 15 %hour% - Hour of the day, for example 18 %minute% - Minute of the hour, for example 31 %second% - Second of the minute, for example 22 %post_id% - The unique ID # of the post, for example 324 %postname% - A sanitized version of the title of the post that means after publishing the article it will automatically add (-) after every word in Post title. So Choosing your permalink structure in WordPress becomes Choosing-your-permalink-structure-in-WordPress in the URI. %category% - A sanitized version of the category name (category slug field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI. %author% - A sanitized version of the author name. It will display the author name on post link. Category base and Tag base permalink You can also use Category base and Tag base permalink- The Category base and Tag base are prefixes used in URLs for category and tag archives, which look like this: bloggerspice.com/wp/category_base/category_name bloggerspice.com /wp/tag_base/tag_name Step 5 Finally click on blue color Save Changes button. And now publish your post and check the post link that it will be visible according to the selected permalink structure in your WordPress Blog. Thank you.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.