Hi Folks,
I’m a novice when it comes to PHP and beginner when it comes to ACF. I know enough to be dangerous with PHP so getting an example seemed to be the best option.
What I’m working on is a contact form within a popup window. The form is a Gravity Forms form with hidden fields. The trigger is a link on a employee profile (a Post with ACF fields) that passes the Post ID as a var on the URL.
I’m looking for an example of function that does the following:
- receives the post id from a link var
- uses that post id to locate the value of an ACF field attached to that post
- returns the ACF field value to populate a hidden field in a Gravity Form