Currently my WordPress permalink structure like this
enlace oculto{post-slug}-{post_id}
but my CPT permalink shows like this
enlace oculto{cpt-slug}/{post-slug}
is it possible to change CPT permalink as showed below
enlace oculto{post-slug}-{post_id}
I dont want to show my CPT Slug in my URL, is there any way to workaround ?
Hello and thank you for contacting Toolset support.
WordPress custom post types have the following permalink structure enlace oculto{cpt-slug}/{post-slug}
The only customization possible, out of the box, is changing the cpt-slug by something else. You can do it in the rewrite option in the custom post definition, check this screenshot enlace oculto
Apart from that, it is not something possible with Toolset. It will require custom code for custom rewrite rules. Read more about it here:
- https://developer.wordpress.org/apis/handbook/rewrite/
- https://developer.wordpress.org/reference/functions/add_rewrite_rule/
- enlace oculto
Please note that such custom code is out of the scope of Toolset support.
through rewrite option can I omit cpt-slug ?
as if I want like this
enlace oculto{post-slug}
Well, with rewrite rules custom code, you can theoretically do whatever you want. However, that's not within the Toolset support. We will not provide any examples or solutions about it. You may want to check online support communities, such as StackExchange or StackOverflow. Or you may want to hire a developer to do it for you. Below the list of our certified developers https://toolset.com/contractors/
This is the WordPress StackExchange community: https://wordpress.stackexchange.com/