Descrizione
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.
Unsupported Characters
Following characters are no longer allowed in the permalinks.
<
>
{
}
|
- “`
^
\
(
)
[
]
Permalinks created previously using any of these characters will not be affected in anyway. However, new permalinks will not support the use of these characters as they are not considered to be safe.
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
add_filter( 'custom_permalinks_path_info', '__return_true' );
Disable redirects
To disable complete redirects functionality provided by this plugin, add the filter that looks like this:
function yasglobal_avoid_redirect( $permalink )
{
return true;
}
add_filter( 'custom_permalinks_avoid_redirect', 'yasglobal_avoid_redirect' );
Disable specific redirects
To disable any specific redirect to be processed by this plugin, add the filter that looks like this:
function yasglobal_avoid_redirect( $permalink )
{
// Replace 'testing-hello-world/' with the permalink you want to avoid
if ( 'testing-hello-world/' === $permalink ) {
return true;
}
return false;
}
add_filter( 'custom_permalinks_avoid_redirect', 'yasglobal_avoid_redirect' );
Exclude permalink to be processed
To exclude any Permalink to be processed by the plugin, add the filter that looks like this:
function yasglobal_xml_sitemap_url( $permalink )
{
if ( false !== strpos( $permalink, 'sitemap.xml' ) ) {
return '__true';
}
return;
}
add_filter( 'custom_permalinks_request_ignore', 'yasglobal_xml_sitemap_url' );
Exclude Post Type
To remove custom permalink form from any post type, add the filter that looks like this:
function yasglobal_exclude_post_types( $post_type )
{
// Replace 'custompost' with your post type name
if ( 'custompost' === $post_type ) {
return '__true';
}
return '__false';
}
add_filter( 'custom_permalinks_exclude_post_type', 'yasglobal_exclude_post_types' );
Exclude Posts
To exclude custom permalink form from any posts (based on ID, Template, etc), add the filter that looks like this:
function yasglobal_exclude_posts( $post )
{
if ( 1557 === $post->ID ) {
return true;
}
return false;
}
add_filter( 'custom_permalinks_exclude_posts', 'yasglobal_exclude_posts' );
Remove `like` query
To remove like
query to being work, add below-mentioned line in your theme functions.php
:
add_filter( 'cp_remove_like_query', '__return_false' );
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.
Installazione
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 - Attiva Custom Permalinks tramite il menu ‘Plugin’ di WordPress
Recensioni
Contributi e sviluppo
“Custom Permalinks” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
Collaboratori“Custom Permalinks” è stato tradotto in 10 lingue. Grazie ai traduttori per i loro contributi.
Traduci “Custom Permalinks” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.
Changelog (registro delle modifiche)
1.7.1 – Aug 30, 2020
- Bugs
- Fix PHP notice (start reporting with WordPress 5.5)
1.7.0 – Aug 20, 2020
- Bugs
- Enhancements
- Enhanced security through characters restriction
- Introduce filter to disable specific redirect(s) or complete functionality
- Automatic replacement of upper case letters to lower case
1.6.2 – Aug 10, 2020
- Bugs
- Forgot to update the version in CSS and JS files in
v1.6.1
- Forgot to update the version in CSS and JS files in
1.6.1 – Aug 10, 2020
- Bugs
- Avoid caching issue by adding version as suffix in CSS and JS files
1.6.0 – Aug 08, 2020
- Bugs
- Undefined index and undefined variable error
- count(): Parameter must be an array or an object
- Fix double slash from the permalink form
- use ‘view_item’ label for previewing custom post types
- Fix PHP 7.4 issues
- Fix Yoast Canonical double slash issue
- Replacing category_link with term_link
- Bug with WPML and Use directory for default language
- Fix Static Homepage redirect issue
- Enhancements
- Improved Gutenberg Support
- Added compatibility for WPML language switcher
- Add filter to exclude Custom Permalinks for certain posts (based on Post IDs, template, etc)
- Optimized Code
Earlier versions
- For the changelog of earlier versions, please refer to the separate changelog.txt file.