0
0
Wordpressframework~5 mins

Permalink structure in Wordpress

Choose your learning style9 modes available
Introduction

Permalink structure controls how your website's page and post URLs look. It helps make links easy to read and remember.

You want your website links to be simple and clear for visitors.
You want to improve your website's search engine ranking with friendly URLs.
You want to include dates or categories in your post URLs for organization.
You want to change the default URL format to match your brand style.
You want to avoid long or confusing web addresses.
Syntax
Wordpress
/%postname%/ or /%year%/%monthnum%/%postname%/
Use percent signs (%) around keywords to define parts of the URL.
Common tags include %postname%, %year%, %monthnum%, %category%, and %author%.
Examples
Shows URLs with just the post title, like example.com/my-post
Wordpress
/%postname%/
Includes year and month before the post name, like example.com/2024/06/my-post
Wordpress
/%year%/%monthnum%/%postname%/
Shows the category and post name in the URL, like example.com/news/my-post
Wordpress
/%category%/%postname%/
Sample Program

This changes your website URLs to show the category and post name, making links clear and organized.

Wordpress
1. Go to WordPress Dashboard.
2. Click Settings > Permalinks.
3. Select 'Custom Structure'.
4. Enter '/%category%/%postname%/' in the field.
5. Click 'Save Changes'.
OutputSuccess
Important Notes

Changing permalink structure on a live site can break old links; use redirects if needed.

Keep URLs short and descriptive for better user experience and SEO.

Summary

Permalink structure defines how your website URLs appear.

Use tags like %postname%, %year%, and %category% to customize URLs.

Choose a structure that is clear and helps visitors understand the link content.