• Resolved nightowlaz

    (@nightowlaz)


    Hi, I have a front-end form and was not receiving emails on new posts, so I applied the PHP code suggested in Functions.php and that worked perfectly. I now receive an email for new posts (custom post type). However, we also send notifications when the post is edited, and now it is sending a “post updated” email as well as a “new post” email when the post is edited. Is there any way to stop the “New post” email when the post is edited? Thanks so much.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter nightowlaz

    (@nightowlaz)

    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.

    Thread Starter nightowlaz

    (@nightowlaz)

    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.

    Plugin Author bnfw

    (@voltronik)

    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

    Thread Starter nightowlaz

    (@nightowlaz)

    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.

    Plugin Author bnfw

    (@voltronik)

    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

    Thread Starter nightowlaz

    (@nightowlaz)

    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.

    Plugin Author bnfw

    (@voltronik)

    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

    Thread Starter nightowlaz

    (@nightowlaz)

    Wondering if there is any progress on this. Getting “new post” notifications every time the post is updated!

    Plugin Author bnfw

    (@voltronik)

    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?

    petebocken

    (@petebocken)

    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.

    Thread Starter nightowlaz

    (@nightowlaz)

    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.

    petebocken

    (@petebocken)

    I’ve had to instruct my client to only use the backend for creating new posts for now.

    Plugin Author bnfw

    (@voltronik)

    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

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Duplicate email on edit post’ is closed to new replies.