- Custom Permalinks
- Description
- Privacy Policy
- Filters
- Add `PATH_INFO` in `$_SERVER` Variable
- Disable Redirects
- Disable Particular Redirects
- Exclude Permalink to be processed
- Exclude Post Type
- Exclude Posts
- Allow Accents Letters
- Allow Uppercase Letters
- Allow Redundant Hyphens
- Manipulate Permalink Before Saving
- Remove `like` Query
- Thanks for the Support
- Bug reports
- Installation
- WordPress add custom links
- Contents
- Linking Without Using Permalinks
- Posts
- Categories
- Pages
- Date-based Archives
- Links On External Sites
- Linking Using Permalinks
- Posts
- Categories
- Pages
- Date-based Archives
- Links on External Sites
- Combining Links with Template Tags
- Absolute versus Relative Links
- Absolute Link Examples
- Relative Link Examples
- Dynamic Linking in Templates
- Custom Permalinks
- Описание
- Privacy Policy
- Filters
- Add `PATH_INFO` in `$_SERVER` Variable
- Disable Redirects
- Disable Particular Redirects
- Exclude Permalink to be processed
- Exclude Post Type
- Exclude Posts
- Allow Accents Letters
- Allow Uppercase Letters
- Allow Redundant Hyphens
- Manipulate Permalink Before Saving
- Remove `like` Query
- Thanks for the Support
- Bug reports
- Установка
Custom Permalinks
Description
In case of found any site breaking issue after upgrading to the latest version then please report the issue on WordPress Forum OR GitHub with complete information to reproduce the issue and move back to the old version. You can download any of the old version from here: https://wordpress.org/plugins/custom-permalinks/advanced/
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 give 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.
Privacy Policy
This plugin only collects the following information.
- Administration Email Address (Only the email that is set in the WordPress setting)
- Plugin version
- Site Title
- WordPress Address (URL)
- WordPress version
All this information gets collected when the plugin is installed or updated.
To have any kind of query please feel free to contact us.
Filters
Add `PATH_INFO` in `$_SERVER` Variable
Disable Redirects
To disable complete redirects functionality provided by this plugin, add the filter that looks like this:
Disable Particular Redirects
To disable any specific redirect to be processed by this plugin, add the filter that looks like this:
Exclude Permalink to be processed
To exclude any Permalink to be processed by the plugin, add the filter that looks like this:
Exclude Post Type
To remove custom permalink form from any post type, add the filter that looks like this:
Exclude Posts
To exclude custom permalink form from any posts (based on ID, Template, etc), add the filter that looks like this:
Allow Accents Letters
To allow accents letters, please add below-mentioned line in your theme functions.php :
Allow Uppercase Letters
To allow uppercase letters/words, please add below-mentioned line in your theme functions.php :
Allow Redundant Hyphens
To allow redundant hyphens, please add below-mentioned line in your theme functions.php :
Manipulate Permalink Before Saving
To make changes in permalink before saving, please use custom_permalink_before_saving filter. Here is an example to see how it works.
Remove `like` Query
To remove like query to being work, add below-mentioned line in your theme functions.php :
Note: Use custom_permalinks_like_query filter if the URLs doesn’t works for you after upgrading to v1.2.9 .
Thanks for the Support
I do not always provide active support for the Custom Permalinks plugin on the WordPress.org forums, as I have prioritized the email support. One-on-one email support is available to people who bought Custom Permalinks Premium only.
Bug reports
Bug reports for Custom Permalinks are welcomed on GitHub. Please note GitHub is not a support forum, and issues that aren’t properly qualified as bugs will be closed.
Installation
This process defines you the steps to follow either you are installing through WordPress or Manually from FTP.
From within WordPress
- Visit ‘Plugins > Add New’
- Search for Custom Permalinks
- Activate Custom Permalinks from your Plugins page.
Manually
- Upload the custom-permalinks folder to the /wp-content/plugins/ directory
- Activate Custom Permalinks through the ‘Plugins’ menu in WordPress
WordPress add custom links
There are two ways to make internal links from one content page to another in WordPress. One uses permalinks and one does not. The method that does not use permalinks works regardless of whether permalinks are enabled for your site.
Contents
Linking Without Using Permalinks
If you are not using Permalinks, how do you link to your posts, categories and Pages?
Using the numeric values such as Post ID, Category ID and Page ID, you can create links as follows.
Posts
The Post ID is revealed as part of the URL in the form of «. post=89», and that URL is displayed in the browser status bar by hovering the mouse over the Post Title of the target Post in the Posts Screen. Insert it in place of the ‘123’ in this link:
Categories
The Category ID is revealed as part of the URL in the form of «. &tag_ID=3», and that URL is displayed in the browser status bar by hovering the mouse over the Category Name of the target Category in the Categories Screen. Insert it in place of the ‘7’ in this link:
Pages
The Page ID is revealed as part of the URL in the form of «. post=15», and that URL is displayed in the browser status bar by hovering the mouse over the Page Title of the target Page in the Pages Screen. Insert it in place of the ’42’ in this link:
Date-based Archives
To link to a given year of a date-based archive, replace the ‘2015’ part of the below link with the required year.
You can also link to a specific month by appending the month to the year in the format YYYYMM, or link to a specific day using the format YYYYMMDD.
Links On External Sites
If you are providing a link to your site from outside of your site, be sure to specify a full URL to the correct location:
If you have installed WordPress to a subfolder, such as wordpress, don’t forget to add the folder to the link URL:
Linking Using Permalinks
If you are using permalinks, you can use all of the above non-permalink techniques, which will work with permalinks enabled or not. If you have enabled permalinks, you have a few additional options for providing links that readers of your site will find a bit more user-friendly than the cryptic numbers.
The complexity of the URL depends on the complexity of your permalink configuration. If your permalink configuration (set on the Options > Permalinks Administration Screen) contains many Structure Tags, then the URL will be more difficult to construct.
Posts
For posts, replace each Structure Tag in your permalink structure with the data appropriate to a post to construct a URL for that post. For example, if the permalink structure is:
Replacing the Structure Tags with appropriate values may produce a URL that looks like this:
To obtain an accurate URL for a post it may be easier to navigate to the post within the WordPress blog and then copy the URL from one of the blog links that WordPress generates.
Review the information at Using Permalinks for more details on constructing URLs for individual posts.
Categories
To produce a link to a Category using permalinks, obtain the Category Base value from the Options > Permalinks Administration Screen, and append the category name to the end.
For example, to link to the category «testing» when the Category Base is «/index.php/categories», use the following link:
You can specify a link to a subcategory by using the subcategory directly (as above), or by specifying all parent categories before the category in the URL, like this:
Pages
Pages have a hierarchy like Categories, and can have parents. If a Page is at the root level of the hierarchy, you can specify just the Page’s «page slug» after the static part of your permalink structure:
Once again, the best way to verify that this is the correct URL is to navigate to the target Page on the blog and compare the URL to the one you want to use in the link.
Date-based Archives
To permalink to a given year of a date-based archive, append that year to the archive’s base link. For example, to link to the year 2015 in an archive with the base link /index.php/archives/ you would use:
You can also permalink to a given month or date by appending month and day values to the corresponding year.
Links on External Sites
Permalink structures should begin with a slash, meaning that they are anchored at the root of the site’s URL. You should be able to prepend the protocol and server name to any link that begins with a slash to build a successful full URL.
For example, this category link:
Becomes this category link using a full URL:
Combining Links with Template Tags
You can customize your links in the header, footer, or sidebar to be combinations of link types. This example features links to two categories, the main index page, a post, a static page, and uses the Pages template tag.
Note carefully that the wp_list_pages() template tag generates its own List Item (LI) so it doesn’t need to be wrapped in a LI tag. This template tag is also set to list only the parent Pages and not their subPages or «children».
Using such a customized list, you can also add CSS classes to change the look of each of the links, or style the entire section. It’s up to you.
Absolute versus Relative Links
Absolute links define absolutely where to find the target of the link.
Relative links define the location of another document in relation to the current document.
Absolute Link Examples
Full URIs of the form http://example.com/wordpress/index.php are absolute links.
Absolute links can also point to your own server. When doing so, you may safely omit the http://domain.com prefix, and link to the target with a full path:
The leading slash means «At the very top of this domain is a directory named wordpress, and inside this directory is a file named index.php«.
contains a link of the form
The link above, when clicked, will take the viewer to
Relative Link Examples
Relative links do not start with a slash:
The lack of a leading slash means «Inside the current directory is a sub-directory named wordpress, and inside that directory is a file named index.php«.
contains a link of the form
The link above, when clicked, will take the viewer to
Let us consider the case where in our blog where we are editing
From it we can make links
Note 1, 2, and 3 are all valid to achieve the same link. However with 4 there is no shortcut, as we must «climb» all the way into the previous year.
The links are all relative and we need not hardwire in any more knowledge than is necessary, which also will help portability if one day we export the blog elsewhere. (What happens if one day we however pick a different permalink structure via the administration screens is unknown. )
However, the above assumes we are always viewing a single post. If in fact we are viewing that same post in an archive, well, then all our assumptions of where we are now are wrong! So we see that however smart relative linking looks, it has a fatal flaw and cannot be chosen!
For more information on absolute and relative links, see the WebReference Tutorial on Absolute and Relative Links.
Dynamic Linking in Templates
Whether you use permalinks or not, in templates you can link to pages or posts dynamically by referring to its unique numerical ID (seen in several pages in the admin interface) with ">This is a link. (as shown in Template_Tags/get_permalink)
This is a convenient way to create page menus as you can later change page slugs without breaking links, as IDs will stay the same. However, this might increase database queries.
Dynamic page menus can also be created by utilizing Template_Tags/wp_list_pages child_of parameter or some of the many available plugins.
It seems that only fully qualified links (http. ) are guaranteed to work in all RSS reading environments.
Custom Permalinks
Описание
In case of found any site breaking issue after upgrading to the latest version then please report the issue on WordPress Forum OR GitHub with complete information to reproduce the issue and move back to the old version. You can download any of the old version from here: https://wordpress.org/plugins/custom-permalinks/advanced/
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 give 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.
Privacy Policy
This plugin only collects the following information.
- Administration Email Address (Only the email that is set in the WordPress setting)
- Plugin version
- Site Title
- WordPress Address (URL)
- WordPress version
All this information gets collected when the plugin is installed or updated.
To have any kind of query please feel free to contact us.
Filters
Add `PATH_INFO` in `$_SERVER` Variable
Disable Redirects
To disable complete redirects functionality provided by this plugin, add the filter that looks like this:
Disable Particular Redirects
To disable any specific redirect to be processed by this plugin, add the filter that looks like this:
Exclude Permalink to be processed
To exclude any Permalink to be processed by the plugin, add the filter that looks like this:
Exclude Post Type
To remove custom permalink form from any post type, add the filter that looks like this:
Exclude Posts
To exclude custom permalink form from any posts (based on ID, Template, etc), add the filter that looks like this:
Allow Accents Letters
To allow accents letters, please add below-mentioned line in your theme functions.php :
Allow Uppercase Letters
To allow uppercase letters/words, please add below-mentioned line in your theme functions.php :
Allow Redundant Hyphens
To allow redundant hyphens, please add below-mentioned line in your theme functions.php :
Manipulate Permalink Before Saving
To make changes in permalink before saving, please use custom_permalink_before_saving filter. Here is an example to see how it works.
Remove `like` Query
To remove like query to being work, add below-mentioned line in your theme functions.php :
Note: Use custom_permalinks_like_query filter if the URLs doesn’t works for you after upgrading to v1.2.9 .
Thanks for the Support
I do not always provide active support for the Custom Permalinks plugin on the WordPress.org forums, as I have prioritized the email support. One-on-one email support is available to people who bought Custom Permalinks Premium only.
Bug reports
Bug reports for Custom Permalinks are welcomed on GitHub. Please note GitHub is not a support forum, and issues that aren’t properly qualified as bugs will be closed.
Установка
This process defines you the steps to follow either you are installing through WordPress or Manually from FTP.
From within WordPress
- Visit ‘Plugins > Add New’
- Search for Custom Permalinks
- Activate Custom Permalinks from your Plugins page.
Manually
- Upload the custom-permalinks folder to the /wp-content/plugins/ directory
- Activate Custom Permalinks through the ‘Plugins’ menu in WordPress