Home › Forums › Add-ons › Options Page › Option repeater field and custom post type › Reply To: Option repeater field and custom post type
Hello @John,
many thanks for your answer.
I’m sorry, I didn’t explain well how I did and what are my goals.
Here is a diagram of what I did.
The idea is to make relationship between custom posts and their own options fields.
For example with three custom posts which display their own informations/values from options fields.
CTP 1 -> repeater “Subject” row[1] -> Title, description, textfield, etc. and from the other repeater field “Location/Town” row[4].
CTP 2 -> repeater “Subject” row[4] -> Title, description, textfield, etc. and from the other repeater field “Location/Town” row[1].
CTP 3 -> repeater “Subject” row[2] -> Title, description, textfield, etc. and from the other repeater field “Location/Town” row[2].
I delete Group field which was unecessary.
I populate title and town from options to my custom post two dedicated radio fields.
Now I’m looking for displaying on the frontend values from options fields that “belong to my custon post”.
Populate not do relationship between CPT and Options.
I tought that with post_id, I’ll be able to display options values like I can do with taxonomies.
Am I wrong ?
I hope it’s more clear…
Let me know.
All the best.
Pierre
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw
— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.