Morning all, really hoping somebody can point me in the right direction on this. I am wanting to update a taxonomy for a particular post once a form has been submitted. I believe this can be done by adding code to the functions.php file.
The code I have so far is function my_post_process($form) { $content = $form->getValue('iphorm_2_4'); update_post_meta( $page_id, '_est_taxonomies', $content ); } add_action('iphorm_post_process_2', 'my_post_process');
So, the form I’m using has an ID of 2 – the data I want inserted is from form 2 and element 4.
I have added this to the functions.php file but it doesn’t seem to work.
My questions are :-
a) is the code correct? b) do I need to add anything to any other file?