How to Set Permalink of Post, Pages Link in WordPress?

Setting permalinks in WordPress allows you to customize the URL structure for your posts, pages, and other content. This can make your URLs more readable and SEO-friendly. Here’s how to set and customize permalinks for posts and pages in WordPress:

Setting Permalink Structure for Posts and Pages

Step 1: Log in to Your WordPress Dashboard

  1. Open your web browser and go to your WordPress login page, usually found at http://yourwebsite.com/wp-admin.
  2. Enter your username and password to log in to the WordPress Dashboard.

Step 2: Navigate to Permalink Settings

  1. In the WordPress Dashboard, look at the left-hand sidebar.
  2. Click on “Settings” to expand the menu.
  3. Select “Permalinks” from the dropdown menu.

Step 3: Choose a Permalink Structure

  1. Common Settings: You will see several common permalink settings, such as:
    • Plain: http://yourwebsite.com/?p=123
    • Day and name: http://yourwebsite.com/2024/07/26/post-name/
    • Month and name: http://yourwebsite.com/2024/07/post-name/
    • Numeric: http://yourwebsite.com/archives/123
    • Post name: http://yourwebsite.com/post-name/
    • Custom Structure: Allows you to define your own URL structure using available tags, like %category%, %postname%, etc.
  2. Select the Permalink Structure: Choose the one that best fits your needs. For SEO purposes, the “Post name” option is often recommended as it provides a clean and descriptive URL.
  3. Custom Structure: If you choose “Custom Structure,” you can use available tags to define your own structure. For example:
    • %year%/%monthnum%/%day%/%postname%/ for a detailed URL.
    • %category%/%postname%/ to include category in the URL.
  4. Save Changes: Click the “Save Changes” button to apply your new permalink structure.

Setting Permalinks for Individual Posts and Pages

Step 1: Edit a Post or Page

  1. In the WordPress Dashboard, go to “Posts” or “Pages.”
  2. Click on the title of the post or page you want to edit or click “Add New” to create a new post or page.

Step 2: Set or Edit the Permalink

  1. For Posts: In the post editor screen, you will see the permalink just below the title field. Click the “Edit” button next to the permalink.
    • You can change the slug (the part of the URL after the domain name) to something more descriptive.
    • After making changes, click the “OK” button to save the new slug.
  2. For Pages: In the page editor screen, the permalink will appear below the page title. Click the “Edit” button next to the permalink.
    • Modify the slug to fit your needs.
    • Click “OK” to save the changes.

Step 3: Update or Publish

  1. After setting or editing the permalink, make sure to click the “Update” button for existing posts or pages or the “Publish” button for new content.

Additional Tips

  • Redirects: If you change permalinks for existing posts or pages, consider setting up redirects from the old URLs to the new ones to avoid 404 errors and maintain SEO value.
  • Slug Formatting: Use hyphens (-) rather than underscores (_) in slugs for better readability and SEO.
  • Permalink Conflicts: Ensure your permalink structure does not conflict with other URL structures or custom post types to avoid conflicts.

By following these steps, you can customize and set permalinks for your posts and pages in WordPress, improving the structure and SEO of your URLs.