Post submission custom taxonomy won’t be applied
-
Hi. I was able to implement an important feature on my homepage with Forminator. Thank you very much.
I have a couple of questions while using it.I created a form that does post submission on the front-end, which submits a Custom Post Type with a Custom Taxonomy (created using the ACF plugin). Inside this form, I have a Hidden Field with the custom taxonomy ID value and mapped it to the Post Data Custom Field so that the custom taxonomy is applied to the submitted post.
However, after submitting the form, the taxonomy is not being applied to the post properly. Despite the “post custom data” field inside the post being just well inserted the form value and even the taxonomy checkbox of the post was already checked on the submitted taxonomy ID value.
Meanwhile, If I go into the editor directly from the WP admin panel and save or update the submitted post without making any changes, then it is applied properly. In other words, if I update the post manually on the post editor page without any changes, everything works fine.
I contacted ACF plugin first and they suggested a couple of things to fix the issue, assuming it’s an update_post_meta function issue.
So,
Is there any way to update the taxonomy field using ACF plugin’s update_field() function instead of WordPress update_post_meta function?
Or, is there any way to have the save_post action fired after the form submission?
- You must be logged in to reply to this topic.