Inserts post 17 times..

[ad_1]

Helloooo

I built a frontend form with a submit button, except when you press it, it inserts the form post once and then 16 more blank ones.

I have a save\_post hook which I have added and removed the action in attempt to reduce a loop.

But this does not seem to be a save loop issue as the 16 additional posts are all different ones. So it is like the insert post is just being triggered many times.

The save\_post hook is actually logic for which post status it should save as depending on a field value and the user role.

For the one post that saves with the form data, it does do this acurately.

So I am wondering – am I using the wrong hook for this task?

ANY ADVICE AS TO WHERE TO EVEN START WOULD HELP SO MUCH!

THANKS!

​

​

​

​

​

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer