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?
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
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
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.
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.
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.
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.
My issue is resolved now. Thank you!