Skip Navigation

[Resolved] custom post type url

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is there somewhere in Toolset a setting that would create the following url structure for the page -
thegreataddress.com/property-location/france/french-alpes/les-gets//les-gets-ski-apartments/
ie, the page slug is appended to the hierarchical taxonomy string

Solution:

There isn't such a built-in feature within Toolset Types plugin, see details here:

https://toolset.com/forums/topic/custom-post-type-url/#post-1216706

Relevant Documentation:

https://codex.wordpress.org/Function_Reference/register_post_type#rewrite

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by johnh-18 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1215387
B.jpg
A.jpg

I have created a few custom post types and taxonomies and the hierarchical archive urls work as expected - see attachment A
But the actual page urls do not follow the same structure - see attachment B
Is there somewhere in Toolset a setting that would create the following url structure for the page -
thegreataddress.com/property-location/france/french-alpes/les-gets//les-gets-ski-apartments/
ie, the page slug is appended to the hierarchical taxonomy string
The site is currently password protected - login details for access to the urls are
user: tga
pw: Krit@45
Best regards / john

#1216706

Hello,

There isn't such a built-in feature within Toolset Types plugin, for single post of custom post type, the default URL rewrite rule is just like your screenshot:
hidden link

And when you edit the custom post type settings, you can only change the post type rewrite rule to a other static text, for example:
hidden link

More help:
https://codex.wordpress.org/Function_Reference/register_post_type#rewrite

But you can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

#1216826

My issue is resolved now. Thank you!