Home › Forums › ACF PRO › Structured Data Recipe (ingredients) › Reply To: Structured Data Recipe (ingredients)
You need to extend you code and relate it to WordPress tags or categories. I think for what you need is tags
1. Create a repeater field with two fields inside: ingredient_name and quantity. ingredient_name must be a taxonomy type field with post_tag.
2 in your template use ingredient_name to create the link; and ingredient_name + quantity to make the structured data
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.