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!
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.
Dear Luoy,
that are bad news for me …
Anyway: Thanks for your reply!
Diana