• Resolved 6n15

    (@6n15)


    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?

    • This topic was modified 2 months, 4 weeks ago by 6n15.
Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @6n15,

    In general, we would recommend adding the snippet via mu-plugins, however, if you aren’t able to update then you could try creating a child theme and add it under the functions.php file or you can use the WP Code plugin to add the Snippet.

    Kind Regards,

    Nithin

    Thread Starter 6n15

    (@6n15)

    Hello.
    I tried the snippet you provided and it worked just as I wanted it to.
    I appreciate you listening to my problem and trying to solve it. I hope Forminator will become a favorite plugin for many more people. I wish you all the best ??

    Thanks

Viewing 2 replies - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.