Home › Forums › Front-end Issues › ACF – Can't get custom post type by taxonomy, no idea how to fix › Reply To: ACF – Can't get custom post type by taxonomy, no idea how to fix
This worked in the end, thanks for the help! however not sure if this is exactly what I wanted, since the custom taxonomy isnt being treated as the default wordpress category, is there a way to make this happen? I guess it doesn’t have to really but the issue I have is with the permalink for each post.
Basically I have two custom posts.
A Service post type (it support,cloud, digital etc…)
A service package (this appears on each service page, they DO NOT have the own unique pages)
Basically the URL’s for the service packages should be.
services/{THE_CURRENT_TAXONOMY_FIELD_VALUE}/#post_name
But they are currently.
service/post_name
I tried using the overwrite rule, but obviously if I overwrite the slug so it contains the other post type, that post type will just become broken.
Thanks for the help!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.