How do I set up the permalink structure of child posts to also show the parent slug eg. hidden link rather than just hidden link. authors and books are custom post types and books are children of authors.
I am using the Types API
Are you going to use the parent post type slug "author" to prepend before the slug of books post?
If it is, you can try like this:
edit the post type "Books":
hidden link
user/pass: xgren/111111
in section "Advanced", enable option "Use a custom URL format ", and fill the parent post type slug into it.
See the result post:
hidden link
Hello Luoy
Thanks for replying. I made a little mistake in how i framed my question. What I really want to achieve is to prepend the author name in front of the book name e.g example.com/my-authors/stephen-king/the-shining .
my-authors = author slug
stephen king = parent post
the-shining = child post (book)
Sorry for the confusion. I hope this makes sense.
Sorry, It is not possible within the Types plugin, Types can only Pre-pend posts with a static slug.
You can ask help from our certified partners at
https://toolset.com/consultant/
Ok. thanks. I do know that I need to code some rewrite rules and filters to make it work so this is more of a wordpress challenge than one restricted to the plugin