I guess it triggers on comments as well. Or, possibly, anything “New” since everything is technically a post. So, anyone listed on my “New Post” notification is getting notifications on anything done that is new.
No sorry…I don’t think it is sending “new post” notifications for every new event. But, it IS sending “new post” notifications every time the post is edited. I removed the “post updated” notification, but it is still sending the “new post” notification on each edit. Sorry for all of the posts, it’s been a bit difficult to determine what this is actually doing.
Hi @nightowlaz,
Thanks for your message.
It is the code in your functions.php file that is doing this.
If you edit your post via the front-end form instead, does it still send duplicate notifications?
Thanks,
Jack
Yes, it sends them on post edit, but if I remove the code it will not send anything when a new post is created from the front end.
Hi @nightowlaz,
So just to clarify – duplicate notifications are being sent if you edit a post both via a front-end form and via the WP Admin – is that correct?
Thanks,
Jack
I’m sorry I made it very unclear with the multiple posts. Originally, I had set up a “New Post” notification and a “Post Updated” notification. I added the PHP code for the insert post trigger. After that, I would get the new post notifications, and I would get the update post notification, but I would also get another new post notification when the post was updated.
I then removed the update post notification, and now I am getting a new post notification if the post is new or if it is updated. So, someone creates a post, I get a “new post” notification. Then, when that post is updated, I get another “new post” notification.
Hi @nightowlaz,
Thanks for clarifying.
Let me do some investigation and I’ll get back to you with what I find. Hopefully it won’t be too difficult to fix.
Thanks,
Jack
Wondering if there is any progress on this. Getting “new post” notifications every time the post is updated!
Hi @nightowlaz,
It sounds like a potential plugin or theme conflict to me as i’ve been unable to replicate this in testing.
Please can you make your way through this document and let me know how you get on?
I’m experiencing the same issue. I’ve tried changing the theme to twentyseventeen and only enabling the Better Notifications plugin. As long as this “bnfw_trigger_insert_post” code is in my functions, I will get notifications for “updated posts” even if only “new post” is selected. It gets worse when I use it with CPT’s, I also get the duplicate emails.
It is the same for me. Since I added the trigger, I get a notification for both Creates and Edits, even though I only have a Create notification set. But, I have to keep the trigger because otherwise it doesn’t recognize when a post is created (for custom post type). Doesn’t send a notification at all.
I’ve had to instruct my client to only use the backend for creating new posts for now.
Hi @nightowlaz and @petebocken,
Just a quick update: this is on my list of things to look at in March currently. I’m aware of the issue and will update this thread if I find anything.
Hi, have you got a solution for this duplicate email.
Please
Hi,
I am using BNFW plugin to send notification email to users on Post status change for pending review.
The users are getting duplicate emails for same notification.
Can you guide me on this? I also recently update this plugin.
Thanks,
Payal