Problem: I would like to remove the 20 character limit on custom post type slugs.
Solution: This 20 character limit is imposed by WordPress and Toolset does not provide the capability to override that limit. Types registers custom post types using the standard WordPress function "register_post_type". Please see the register_post_type documentation link below.
If you just want to have longer slugs in the URLs for your CPT, you can use the Rewrite option in the post type editor to specify a different slug. The 20-character limit does not apply to the rewrite. I'm attaching a screenshot that shows where this option can be modified. This would result in posts with URLs like http://yoursite.com/this-is-a-long-slug-that-can-replace-your-short-cpt-slug/post-slug
Relevant Documentation: https://codex.wordpress.org/Function_Reference/register_post_type
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years ago.
Assisted by: Christian Cox.