Skip Navigation

[Résolu] Adapting permalinks of child-ctp and bring childs into wordpress-menu

This support ticket is created Il y a 8 années et 1 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Marqué : 

This topic contains 2 réponses, has 2 voix.

Last updated by dianaM-4 Il y a 8 années et 1 mois.

Assisted by: Luo Yang.

Auteur
Publications
#374744

I have an archive-view which shows my parent custom post types "auslobungen",
and several related children, all different custom post types:
child1-cpt "downloads", child2-cpt "photos", child3-cpt "faqs"

On each single view of the parent "auslobungen", I want to implement a menu to it's children. I followed the instructions on https://toolset.com/documentation/user-guides/displaying-related-child-posts/ and now I have three views, with the links to all related children. I know I can place these three views in my single-view "auslobungen". But is there a way, to get these links into a wordpress-menu? Because I want to assign it to the top-menu of the toolset-starter-theme.

And how can I rearrange the permalinks of the children? In the moment, they are showing
../children-ctp-slug/children-post-slug
but I want to read the parent in it. Like:
../parent-ctp-slug/parent-post-slug/children-ctp-slug/children-post-slug
So it looks like this:
../auslobungen/auslobung1/downloads/download1

Please for help. Thanks!

#374857

Dear diana,

Unfortunately, both of your requests isn't available within Types and Views
Q1) But is there a way, to get these links into a wordpress-menu?
You can try with wordpress filter hook wp_nav_menu_items to setup the menu items as what you want:
See similar thread:
http://wordpress.stackexchange.com/questions/2143/customizing-only-a-specific-menu-using-the-wp-nav-menu-items-hook

Q2) And how can I rearrange the permalinks of the children?
It is not possible within Types plugin, I suggest you check out our certified partners for it:
https://toolset.com/consultant/

But you can setup a static string before the custom post permalinks, for example, edit the child post type, in section "Option", enable option "Rewrite", and there is options for "Use a custom URL format " and "Prepend posts with this slug"

For your reference.

#374901

Dear Luoy,
that are bad news for me …
Anyway: Thanks for your reply!
Diana

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.