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]