Custom Permalinks

تفصیل

Lay out your site the way you want it. Set the URL of any post, page, tag or category to anything you want.
Old permalinks will redirect properly to the new address. Custom Permalinks gives you ultimate control
over your site structure.

Be warned: This plugin is not a replacement for WordPress’s built-in permalink system. Check your WordPress
administration’s "Permalinks” settings page first, to make sure that this doesn’t already meet your needs.

This plugin is only useful for assigning custom permalinks for individual posts, pages, tags or categories.
It will not apply whole permalink structures, or automatically apply a category’s custom permalink to the posts
within that category.

If anyone wants the different Structure Tags for their Post types or use symbols in the URLs So, use the Permalinks Customizer which is a fork of this plugin and contains the enhancement of this plugin.

Filters

If you want to exclude some Permalink to processed with the plugin so, just add the filter looks like this:

function check_xml_sitemap_url( $permalink ) {
  if ( false !== strpos( $permalink, 'sitemap.xml' )) {
    return '__true';
  }
  return;
}
add_filter( 'custom_permalinks_request_ignore', 'check_xml_sitemap_url' );

If you want to exclude permalink from any post type so, use custom_permalinks_exclude_post_type filter.

custom_permalinks_exclude_post_type filter looks like this:

function yasglobal_exclude_post_types( $post_type ) {
  if ( $post_type == 'custompost' ) {
    return '__true';
  }
  return '__false';
}
add_filter( 'custom_permalinks_exclude_post_type', 'yasglobal_exclude_post_types');

Note: custom_permalinks_exclude_post_type doesn’t work on the posts permalink which has been created previously.

Thanks for the Support!

The support from the users that love Custom Permalinks is huge. You can support Custom Permalinks’s future development and help to make it even better by donating or even giving a 5 star rating with a nice message to me 🙂

Donate to Custom Permalinks

انسٹالیشن

  1. Unzip the package, and upload custom-permalinks to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Edit any post, page, tag or category to set a custom permalink.

عمومی سوالات

Installation Instructions
  1. Unzip the package, and upload custom-permalinks to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Edit any post, page, tag or category to set a custom permalink.

جائزے

Great plugin!! Sets the categories you want!

Thank you for the wonderful plugin. It was exactly what we needed. Since we have a bunch of categories, the permalink structure wasn’t letting us select which categories we wanted in the permalink. This plugin saved the day and now we can override the ones that require certain categories.

Seamless and does the trick – Perfect!

I just needed to add extra path levels to the URL (e.g. example.com/read-my/blog instead of just example.com/blog) and it does that effortlessly.

I was a bit worried about how this works in practice as it sounded a bit complicated in the blurb but it simply replaces the editable permalink field on the post / page and integrates seamlessly into my standard process.

Really happy with the plugin – Thanks!

404 for some tags, some tags works as random pages

I experienced big issue with this plugin and can’t recommend it to anyone.

1. Some tags (they was not added permalinks) started to show 404 page after activating the plugins
2. Some tags (they was not added as permalinks) started to show random post.

تمام 73 جائزے پڑھیں

شراکت دار اور ڈیویلپرز

#8220;Custom Permalinks” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:

شراکت دار

“Custom Permalinks” کا 5 زبانوں میں ترجمہ کیا گیا ہے۔ تعاون کے لیے مترجمین کا شکریہ۔

“Custom Permalinks” کا اپنی زبان میں ترجمہ کریں۔

ڈویلپمینٹ میں دلچسپی ہے؟

کوڈ براؤز کریں، ایس این وی ریپوزیٹری کو چیک کریں یا ڈویلپمینٹ لاگ کو سبسکرائب کریں بذریعہ آر ایس ایس۔

چینج لاگ

1.2.8

  • Add Order by in request query

1.2.7

  • Fixed Parse Error

1.2.6

  • Enhancements
    • Added Filter to Exclude Post types
  • Bugs
    • Fixed Query Issue on parse_request
    • Resolving Issues with Cornerstone

1.2.5

  • Fixed Category/Tag Update Issue + Typo on Admin Page

1.2.4

  • Fixed Slug issue with Yoast SEO

1.2.3

  • Fixed PHP Notice on Edit Post Page

1.2.2

  • Fixed Typo of Class Object for term on Admin Page

1.2.1

  • Fixed Class Typo

1.2

  • Enhancements
    • Added Filter to Exclude/Ignore URL to be processed
    • Added Translation Capability
    • Split the Code using OOPS Concept to improve performance and applied the filters according to the need
    • Removed some unnecessary filters
  • Bugs
    • Fixed Vulnerability Issues

1.1

  • Enhancements

    • Added PostTypes Permalinks Page
      • View all the PostTypes permalinks
      • Search Permalinks
      • Sort by Title
      • Pagination
    • Added Categories Permalinks Page
      • View all the Category/Tags permalinks
      • Search Permalinks
      • Pagination
  • Bug Fixes

    • 404 Issues
    • Child pages bug

1.0.2

  • Fixed Notice and some URL Issues

1.0.1

  • Fixed issue with AMP Pages

1.0

  • Updated Query on the custom_permalinks_request Function

0.9.3

  • Fixed PolyLang Conflicts

0.9.2

  • Fixed WPML Conflicts

0.9.1

  • Fixed issues of Filters and Actions (Replaces ‘edit_files’ with 10)

0.9

  • Resolved the conflict with PolyLang Plugin

0.8

  • Fixed (Draft preview issue for custom post types + some PHP Warnings)

0.7.28

  • Fixed draft preview issue(posts + pages)

0.7.27

  • Fixed Loop Redirecting issue

0.7.26

  • Fixed PHP Notice issue

0.7.25

  • Fixed draft preview issue

0.7.24

  • Fixed a problem with page URLs

0.7.23

  • Fixed a problem with permalinks with "/” components

0.7.22

  • Fixed PHP warning
  • Fixed initial permalink display for new posts/pages

0.7.21

  • Minor internationalization fixes

0.7.20

  • Addressed a noisy warning
  • Revised addition of admin forms js (don’t use is_admin())
  • Updated Roles and Capabilities from depreciated numerical to label capabilities (by OF-6)
  • Added css/html to match WP 3.5+ layout (by OF-6)

0.7.19

  • WP 3.9 compatibility fix, thanks to Sowmedia

0.7.18

  • Patch to address 404 errors when displaying a page/post that shares a permalink with a trashed page/post, thanks to Tor Johnson

0.7.17

  • Patch to address SSL problems, thanks to Amin Mirzaee

0.7.16

  • Security and compatibility fixes by Hans-Michael Varbaek of Sense of Security

0.7.15

  • Permalinks are now case-insensitive (thanks to @ericmann)

0.7.14

  • Delete permalinks upon page/post deletion

0.7.13

  • Fixed issue with term permalinks not working properly on some installations

0.7.12

  • Fixed issue with feed URLs in non-webroot blog installations

0.7.11

  • Fixed issue with pending/draft posts with permalinks
  • Fixed infinite redirect issue with permalinks without trailing slash, on blogs not hosted in the webroot

0.7.10

  • Fix for 404 error on static front page with custom permalink set, by Eric TF Bat

0.7.9

  • Support for custom post types, by Balázs Németh

0.7.8

  • Support for non-ASCII characters in URLs
  • Fixed bug where adding a new tag when saving a post with a custom permalink attaches that permalink to the new tag
  • Some compatibility fixes for WP 3.2.1

0.7.7

  • Minor change to permalink saving routine to fix some possible issues
  • Fixed issue with %-encoded permalinks

0.7.6

  • Fixed permalink saving issue when not using "…/%postname%” or similar permalink structure

0.7.5

  • Fixed issue where changes to trailing "/” aren’t saved

0.7.4

  • Added support for changing post/page slug only
  • Fixed incorrect admin edit link

0.7.3

  • Fix problem with /page/# URLs on WP 3.1.3

0.7.2

  • Don’t clobber query parameters when redirecting to the custom permalink from the original URL

0.7.1

  • Compatiblity fix for last update

0.7

  • Added support for SSL sites, thanks to Dan from todaywasawesome.com

0.6.1

  • Fix bug causing incorrect link from "View Post”/”View Page” button in post/page editor

0.6

  • Fix infinite redirect for permalinks ending in a / (critical fix)
  • Moved post/page permalinks settings to top of edit form, replacing prior permalink display

0.5.3

  • Fix for invalid URL redirect (eg. http://domain.comfolder/file.html instead of http://domain.com/folder/file.html) when using permalinks without a trailing slash (like …/%postname%.html)

0.5.2

  • Bugfix for matching posts when there are multiple posts that match parts of the query

0.5.1

  • Compatibility fix for WP 2.7’s tag/category pages

0.5

  • Support for WordPress sites in subdirectories (i.e., not located at the webroot)

0.4.1

  • WP 2.7 compatability fixes; fix for bug encountered when publishing a draft, or reverting to draft status, and fix for placeholder permalink value for pages

0.4

  • Support for pages, and a fix for draft posts/pages

0.3.1

  • Discovered a typo that broke categories

0.3

  • Largely rewritten to provide more robust handling of trailing slashes, proper support for trailing URL components (eg. paging)

0.2.2

  • Fixed bug with not matching permalinks when / appended to the URL, and workaround for infinite redirect when another plugin is enforcing trailing /

0.2.1

  • Better handling of trailing slashes

0.2

  • Added ‘Custom Permalinks’ section under ‘Manage’ to show existing custom permalinks, and allow reverting to the defaults

0.1.1

  • Fixed bug with categories