Skip Navigation

[Resolved] Post Type link structure

This support ticket is created 2 years, 2 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/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by michelL 2 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2485121

Hi there,

I have the Post Type <Inspiraties> and the url is now dom hidden link

Now I want to put several post type under it so that the url becomes like this;
hidden link
hidden link

How can I do this?

#2485679

Hi,

Thank you for contacting us and I'd be happy to assist.

Even if you're able to implement this nested post-type permalink structure through some custom and complex rewrite rules, I've some reservations about its efficiency.

If the slug followed by "/inspiratie/" is the slug of the child post types, how would the permalink of the actual "Inspiraties" post type will look like?

A few better alternatives could be:

1. Instead of registering separate child post types, you can make the main "Inspiraties" post type 'hierarchal'.
OR
2. Instead of registering separate child post types, you can register a custom taxonomy attached to the main "Inspiraties" post type, so that they can be further categorized into terms like 'locatie', 'accommodaties' etc.

regards,
Waqar

#2486775
url now.png

Hi,

I think option 1 is the best one.

Now I made "Inspiraties" post type 'hierarchal' but how can I create a link/breadcrumb like;
website/inspiratie/locatie/postname

#2487813

Thanks for writing back.

To suggest the best way to achieve this, I'll need to see how the breadcrumbs are set up on your website.

Can you please share the temporary admin login details of the website, along with the link to an example page?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

#2491163

Thank you for sharing these details.

To achieve this structure, please go to WP Admin -> Inspiraties and add 4 new "Inspiraties" posts:

- Locatie
- Leuk voor de kinderen
- Groepsaccommodatie
- Accommodaties

These posts will be the top most parent-level posts in this post type and any other posts that you'll add, will need to be added as the child of one of those 4 posts, based on their relevance.

This way the hierarchy will be maintained by the topic/relevance, within the same "Inspiraties" post type and you'll not need separate post types for them.

#2491953

Great thanks!

Is it also possible to style the Archive page (hidden link) without using the Archive view?
I want to style this page with different views that I have created myself.

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-using-different-views-for-archives/

#2493331

Thanks for the update.

I've created a separate ticket for your question about using the views in the archives and will follow up on that shortly.
( ref: https://toolset.com/forums/topic/split-using-different-views-for-archives/)

You're welcome to mark this ticket as resolved and start a new one for each new question or concern.

#2494313

My issue is resolved now. Thank you!