A client is in process of building a new site. Is there a way to migrate the existing list of post permalinks in use to a new site? The site was a fresh WP install and ready to launch so too late to clone the old site, etc.
]]>Just an FYI,
We ran into a conflict with this plugin and the Cornerstone page builder. The issue is due to Custom Permalinks redirecting the build editor’s iframe. The builder loads the front end view of the site in a special iframe in order to allow visual editing. The iframe does that with a POST request with some special values passed in. Custom Permalinks then redirects the iframe with a GET request that loses the editor’s magic.
Here is my fix:
function yasglobal_avoid_redirect( $permalink ) {
// Check if the 'cs_preview_time' key exists in the POST data
if (isset($_POST['cs_preview_time'])) {
return true;
}
return false;
}
add_filter( 'custom_permalinks_avoid_redirect', 'yasglobal_avoid_redirect' );
]]>
We have a website that we are setting up for use with WPML and it uses the Custom Permalinks plugin for mapping the permalink for the categories.
I have the following versions installed:
The custom permalinks were added when creating the categories initially and show as per the below
DEFAULT LANGUAGE – WORKS (English)
/industry-sectors/
/industry-sectors/infrastructure/
When viewing the “Taxonomies Permalinks” for the Custom Permalinks plugins, these are the values shown
CUSTOM PERMALINKS – DOESN’T WORK – 404.php
/en/industry-sectors/
/en/industry-sectors/infrastructure/
CURRENT SETUP FOR TRANSLATED LINKS – WORKS
/fr/secteurs-dactivite/
CURRENT SETUP FOR TRANSLATED LINKS – DOESN’T WORK – 404.php
/fr/secteurs-dactivite/infrastructure-fr/
When using the Language selector in the menu and switching from the default language to French, this is the URL which appears is shown when I hover the cursor over the French flag.
DEFAULT – /industry-sectors/infrastructure/
SWITCH URL – /fr/category/secteurs-dactivite/infrastructure-fr/
While the WPML switch URL above does show the data, but the permalink doesn’t work as expected.
I investigated and this is a certified plugin that states to work correctly with WPML.
While the WPML switch is an issue, the issue is that the CP plugin isn’t working as expected
Any assistance would be great.
]]>I type in the Permalink field a Url with a Trailing Slash at the end.
When i saving the site, the trailing Slash will be automatically removed.
Have you a idea whats going wrong?
WordPress Version: 6.6.1 and PHP-Version: 8.2.23
]]>Hello, I’d like to use this plugin only on several specific subpages and on the rest of the site use default WP permalinks. More specifically, I want o use it only for children of one or two parent pages.
Is this possible and how to do this?
Looking at the docs, the filter ‘custom_permalinks_exclude_posts’ might be the solution, right? Maybe something like this:?
function yasglobal_exclude_posts( $post ) {
if ( 1111 === $post->post_parent; ) {
return false;
}
return true;
}
add_filter( 'custom_permalinks_exclude_posts', 'yasglobal_exclude_posts' );
But as I understad, this only removes the UI from the post detail, it doesn’t stop the plugin from rendering once changed permalink, am I correct? If there are some changes to the permalinks already made, I have to remove them from the custom permalinks list, right?
Is it possible to remove the whole functionality of the plugin for the specific pages (or vice versa, enable it only for specific pages)?
Not sure if I should use the filter ‘custom_permalinks_avoid_redirect’. I’ve tried to use it, but it didn’t seem to change anything.
Thanks for your reply.
]]>Hello, we created a new post but for some reason it’s returning a 404. When we de-activate the plugin, the post works.
]]>I’m using WPML for multiple languages and Yoast SEO. Yoast generates canonical links in the <head> of the website. For the primary language the links are fine but for the translation language ALL the canonical links contain a double slash.
This leads to Google ignoring the canonical tag and other issues, like non-indexable URLs in the xml sitemaps
When I deactivated the Custom Permalinks plugin the canonical URL displayed correctly with only one slash so it appears to be a conflict with this plugin. Are there any possibilities of fixing this in an update?
]]>I am getting the below error on my site and the plugin no longer seems to be working:
WordPress version 6.4.3
Active theme: Neve Child (version 1.0.0)
Current plugin: Custom Permalinks (version 2.5.2)
PHP version 8.0.30
Error Details
=============
An error of type E_ERROR was caused in line 247 of the file /var/www/emilyluxton.co.uk/htdocs/wp-content/plugins/custom-permalinks/admin/class-custom-permalinks-post-types-table.php. Error message: Uncaught ValueError: Unknown format specifier "D" in /var/www/emilyluxton.co.uk/htdocs/wp-content/plugins/custom-permalinks/admin/class-custom-permalinks-post-types-table.php:247
Stack trace:
#0 /var/www/emilyluxton.co.uk/htdocs/wp-content/plugins/custom-permalinks/admin/class-custom-permalinks-post-types-table.php(247): sprintf()
#1 /var/www/emilyluxton.co.uk/htdocs/wp-admin/includes/class-wp-list-table.php(1794): Custom_Permalinks_Post_Types_Table->column_title()
#2 /var/www/emilyluxton.co.uk/htdocs/wp-admin/includes/class-wp-list-table.php(1737): WP_List_Table->single_row_columns()
#3 /var/www/emilyluxton.co.uk/htdocs/wp-admin/includes/class-wp-list-table.php(1724): WP_List_Table->single_row()
#4 /var/www/emilyluxton.co.uk/htdocs/wp-admin/includes/class-wp-list-table.php(1709): WP_List_Table->display_rows()
#5 /var/www/emilyluxton.co.uk/htdocs/wp-admin/includes/class-wp-list-table.php(1636): WP_List_Table->display_rows_or_placeholder()
#6 /var/www/emilyluxton.co.uk/htdocs/wp-content/plugins/custom-permalinks/admin/class-custom-permalinks-post-types-table.php(185): WP_List_Table->display()
#7 /var/www/emilyluxton.co.uk/htdocs/wp-content/plugins/custom-permalinks/admin/class-custom-permalinks-admin.php(127): Custom_Permalinks_Post_Types_Table::output()
#8 /var/www/emilyluxton.co.uk/htdocs/wp-includes/class-wp-hook.php(324): Custom_Permalinks_Admin->post_permalinks_page()
#9 /var/www/emilyluxton.co.uk/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/emilyluxton.co.uk/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /var/www/emilyluxton.co.uk/htdocs/wp-admin/admin.php(259): do_action()
#12 {main}
thrown
]]>
Hello,
seems like your plugin can’t handle special characters like & and ? and =
Is there a way to solve this issue?
Best regards,
Tobas
]]>Hi,
Is the recent version of the plugin ‘Custom Permalinks’ compatible to PHP 8.0/8.1/8.2 and latest WP 6.4 version ?
If plugin cause any errors/notices in PHP 8.0/8.1/8.2, please let me know the stable version of the plugin and also update the compatible PHP & WP version.
Thank you in advance.
]]>Hi,
I have two issues:
First, All custom slugs created with your plugin lack a trailing slash. Is there a way to add a trailing slash to all permalinks?
Secondly, your plugin is not compatible with WP-Rocket. This was the response I received when I contacted their support:
“The issue is caused by the Custom Permalinks plugin.
The Plugin prevents preloading and caching for any URL for which a custom permalink has been created. URLs will get stuck in in-progress state. They hook a function into the template_redirect hook that ends up doing a 301 redirect.
At the moment Custom Permalinks plugin is not compatible the the WP Rocket.”
Could you please assist me in resolving these issues? Alternatively, is there a method to integrate custom permalinks directly into the ‘wp-post’ table?
Best Regards.
]]>Hi,
Is there a method to transfer all custom slugs to the wp_posts table?
]]>I see that this plugin has not been updated in the last 8 months. Are you still supporting this?
]]>Custom permalink is not showing in Woocommerce category page.
]]>After I upgraded wordpress to 6.3 all the Custom Permalinks stopped working and got 404 error. I don’t know if it’s because of the wordpress update?
]]>Hello,
I’m switching from Easy Digital Downloads, where I used custom permalinks for downloads, to Woo Commerce. I deactivated Easy Digital Downloads. But when I upload Woo Commerce, the page shows a 404 error because the custom permalink still belongs to the Easy Digital Downloads post type. How can I delete/update the Woo Commerce Product post type for permalinks?
]]>Hello,
The Custom Permalinks plugin has been fantastic on our site. We’ve run into a little hiccup though when trying to use it with the Polylang plugin on a setup with more than one domain.
I wanted to share this issue with you in hopes that we can identify a solution together.
Here’s a detailed explanation of the problem:
To summarize, the issue is as follows:
I’m unsure if this is a bug or if the Custom Permalinks plugin is not designed to work with multiple domains in the Polylang setting. Either way, I would greatly appreciate your guidance and any possible solutions that you can provide.
Thank you very much for your time and assistance. I look forward to hearing from you soon.
Best regards
]]>Hello, is it possible to change slugs of existing posts programatically? I am importing aprox. 5000 posts and I need to set custom permalink for each. I tried using wp_update_post with custom permalink, but it is saving as default with “-“. THanks.
]]>In the recent versions of WP Rocket caching plugin (3.13+) they are enforcing trailing / not trailing slashes on your URLS, depending on what the permalink structure is in your WP settings. The issue using Custom Permalinks is if your default permalinks do not have slashes (eg. /2023/5/postname.html) and the custom permalink for the post does (/postname/), then WP Rocket will not cache the page. In terms of a workaround, most obvious seems to add to htaccess to remove the trailing slash and turn off redirects in the plugin by adding the disable code on the main plugin page. But I’m wondering if there’s any other suggestions (beyond “find another cache plugin”) …
]]>I’m creating a custom post called “office” and a custom taxonomy called “area” without using a plugin.
In the archive, I want to have a slug structure of office/area, so I checked the checkbox for “Use customized custom taxonomy permalinks.” are lined up.
Is there a way to use only /office/area?
Hi,
We are currently using the custom permalinks plugin for our e-commerce website powered by WooCommerce. While the plugin successfully modifies the permalink of the category, we have encountered an issue where it doesn’t update the permalink structure of the products associated with that category. We were wondering if there is a solution to address this concern.
Thank you very much for your attention and assistance.
Best regards, Andreas
]]>Does this plugin allow customizing the permalinks for WooCommerce Products?
Also, is it possible to create multiple permalinks for a single page/post/Product?
]]>Hello, I have a custom post type and custom taxonomy associated to it. The permalink editor is visible in the cpt but not in the taxonomy term. In default wp category terms is visible.
Is there any parameter I should add in the register taxonomy function?
Thanks!
]]>Hello, we have a redirection problem when we use custom permalinks. There seems to be a conflict with our translation system. We wanted to use custom permalinks to manually replace the /blog/ par of our slug for some specific articles… but we also have Polylang, that is adding its language slug (/en/ or /fr/)… and we can’t have it working well… We also have Redirections plugin… is there any reason why it should not work ?
]]>Hi and thanks for the great plugin. I use it since many years and now I have an important question.
I just used this code to disable the redirect function, since one plugin I worked with was affected by custom permalinks.
function yasglobal_avoid_redirect( $permalink )
{
return true;
}
add_filter( ‘custom_permalinks_avoid_redirect’, ‘yasglobal_avoid_redirect’ );
Now everything works. However my question is: What does it do exactly? I have 25000 URLs on my page – will the existing permalinks be affected from now on? That would be the worst case.
Otherwise I would really be glad if you quickly explained what this code does and how it affects my page (old and future pages).
Thanks a lot
]]>Hi,
Custom permalinks version 2.5.1 doesn’t work anymore with Content views pro filters – https://www.contentviewspro.com . When trying to filter a value, the content will not update according to the selected value and the dropdown filter jumps back to its initial default value.
This example page https://www.internetsociety.org/blog/ is using 2.5.0 – as soon as it’s updated to the latest version it will stop working.
Can that be fixed? If needed I can set up a dev site where to reproduce the issue.
Thanks much for your kind assistance,
Henri
]]>I help run a site that has 32 custom permalinks. When administering the Custom Permalinks plugin via the PostTypes Permalinks page, which lists the permalinks (by columns of title; type; and permalink), I am unable to scroll (advance) through to any of the following pages of listed permalinks. Another way of saying this is that the 32 permalinks are listed across 4 admin pages and I can only view the first page (though 20 permalinks are showing on the first page, which means there should just be one more page and not four, so this too appears to be adrift).
Specifically, two parts of the scrolling function won’t work: (1) The ‘screen options’ drop down (top right of the admin area) does not appear to work no matter the number of permalink items that are requested to show on each page; (2) the page scroll options (directly underneath the ‘Search permalinks’ field on the upper right of the admin page) won’t work either.
The plugin otherwise appears to work well.
The website running the Custom Permalinks plugin is within “Wordpress.com”. If I use v.1.7.1, the scrolling option works and I can access all permalinks. If I use any version from 2.0.0 onwards, the failure to scroll problem manifests itself. When I use the troubleshooting mode, the theme is swapped for Twenty Sixteen and I can disable 16 of 22 plugins. With the troubleshooting more, I can disable a further 5 plugins. At some point then, 21 of 22 plugins have been disabled (the exception is Jetpack (by Automattic) which WordPress.com won’t allow to be disabled). When a Custom Permalinks version later than 1.7.1 is turned on, the problem manifests.
Albeit that I can’t turn Jetpack off, but if you might have any other ideas as to what could cause this, I’d be very happy to hear.
Thank you for your time.
]]>I have tried to update the custom permalinks key via a standard approach in the Rest API, but I keep failing. Is the rest API officially supported by the plugin?
If so, any guidance you could provide would be very appreciated, thank you!
Our plugin has disappeared from the plugins store and is no longer available for download. We noticed that the message “This plugin has been closed as of March 24, 2023 and is not available for download. This closure is temporary, pending a full review” is displayed next to our plugin.
We did not receive any notification about this and would like to understand the reason for the closure and the steps we need to take to resolve the issue. From where we can get more information about the issue and any guidance on how we can resolve it?
The repository URL for our plugin is: https://plugins.svn.www.ads-software.com/yaad-sarig-payment-gateway-for-wc
]]>Our plugin has disappeared from the plugins store and is no longer available for download. We noticed that the message “This plugin has been closed as of March 24, 2023 and is not available for download. This closure is temporary, pending a full review” is displayed next to our plugin.
We did not receive any notification about this and would like to understand the reason for the closure and the steps we need to take to resolve the issue. From where we can get more information about the issue and any guidance on how we can resolve it?
The repository URL for our plugin is: https://plugins.svn.www.ads-software.com/yaad-sarig-payment-gateway-for-wc
]]>