You’re basically going to be making one CPT child posts of another CPT. You can use a post object field for this in the same way that the parent is used in the document above.
In step 4 of the document you would set the permalink based on the settings of the fields.
Unfortunately you’ll need to to some testing and digging because I have only done this to make all of one post type the child of the other and the permalink is always altered. I do not know what extra steps you’ll need to take to make it not do it for all.
I would try it as is and see what happens. I have an if statement that looks at the parent post and alters the url based on that setting. But I am not altering it if there is not parent post. On the other hand because of other things that I’ve done it is impossible to not have a parent.
honestly, I don’t know, my filters run on every page load but I no not think that matters. When I make a change I have to do an update on the permalink settings page to make them effective. It is the only way that I know of to change the permalink of a post.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users