So I have been having a hard time finding a solution to this. Any help would be greatly appreciated.
I have an options page with a repeater field. In this repeater the operator can fill in a NAME and VALUE field.
In my functions.php I grab another custom field for a product, also called NAME. I need to find if the value NAME exists in my repeater field, then grab the VALUE that corresponds with it. I’m mostly a front end dev and this issue is pretty new to me, so I am lost as to how I am going to grab the VALUE field from the corresponding NAME field in this repeater.
Is this something that is possible? If so, could someone point me in the right direction?
Calling the value of the options page repeater is not a problem for me. Where I am stuck is when I need to “search” that array for the keyword.
To type out logically what I am stuck at would be something like “If <keyword> is in <array row 1>, grab corresponding value of <array row 2>. This is probably more relevant to just general PHP coding than ACF, but as a front end dev, this isn’t something I’m all to familiar with. And I cant seem to find any resources online for this type of issue.