Post Types:
Desired URL Structure:
I’d like to display the chapter
post type under the book
post type in the following structure:
- Domain.com/book/jack-and-the-beanstalk/chapter/1
- Domain.com/book/jack-and-the-beanstalk/chapter/intro
What I’ve Tried:
The Problem:
How can I correctly set up this URL structure using ACF to:
- Link books and chapters.
- Ensure chapters appear under their respective books in the URL.
Any guidance or example code would be greatly appreciated!
Great guide! Creating custom URL structures can really improve your site’s SEO and overall user experience. If you’re looking to take your WordPress site to the next level with custom post types, optimized URL structures, or any other web development needs, feel free to reach out! Our web development services specialize in crafting tailored solutions to help businesses grow online.