@takayukister
Hello good!
I’m doing it on a local host…
but I just realized that it does collect the acf
In this part, if we change the page_id to a numerical id (example: 3456/id of an entry) in the email, the email entered by here on that page is sent.
// It doesn't work (but it should work like this)
$extra_email = get_field('center_email', $page_id);
// Works
$extra_email = get_field('center_email', 3456);
what is wrong is the variable that saves the page id
$page_id = get_the_ID();
In summary: I think that to solve it I only need to save the id of the page from where the email is sent in that variable.
I have tried several ways but I have not found any solution.
-
This reply was modified 1 year, 2 months ago by steev99.