Hi @hube2,
Thanks for the explanation! That did the trick!
In reading documentation regarding modifying the $_POST
data, I wasn’t sure how that would interface with repeater rows as the keys seemed to be named sequentially. Good to know I can modify repeater data this way.
Thanks so much!
Thank you, @jarvis as well. 🙂
Hi @jarvis
Thanks for the info. Which action and priority would you recommend using with add_row()
while being able to compare new and old values from the other ACF field?
Also, how would this scenario work with updating an ACF field that’s not a repeater? Using update_field()
didn’t seem to work given the comparisons needed and order of operations in my original post.
Thank you!
Hi @elliot
Thanks for all your help with this. What you suggested works like a charm! I should have figured that out, it’s pretty simple.
Thanks again!
Hi @elliot
I apologize I wasn’t very specific. The template I’m using is a custom page template.
Here’s the code for the first method listed in the documentation, setting the post
object and using wp_reset_postdata()
. The result is that only the person’s name (line 12) and the correct company name and link is displayed for that person. Everything else, including the person’s title and biography don’t show up.
The more I thought about it, the more I think the loop method listed in the documentation isn’t the method for what I’m trying to accomplish since I’m only trying to target one specific company from the post object.
Let me know if there’s any other information you need. Thanks again for your assistance!