• Resolved jberg1

    (@jberg1)


    Hello, I’m using your plugin to notify specific roles when posts are published in certain categories. I’ve checked all the categories that apply. The issue I ran into is it will send notification if the post is in all the categories, but doesn’t if the post is in one of the categories. Is that intended? Is there a better way to do that? Does using Taxonomy work any different?

    I was thinking multiple notifications, one for each category, but that seems like it would send out duplicate notifications if a post is in multiple categories.

    Thanks for any help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jberg1

    (@jberg1)

    After further investigation the issue might be different. When I changed the post status from Published to Draft and then changed back to Published the notification went out.

    I’m using the Front End Submission plugin for members to submit a post that is then published immediately. Maybe that is conflicting with post status notification in the planner? Or does the status need to be changed by a specific user role like Admin?

    Any thoughts?
    Thanks for your help.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @jberg1

    Thanks for using PublishPress.

    No, the status does not need to change by specific user. As long as there is status change, our plugin will still detect it.

    Can you share a screenshot of how you set up the notification? And tell us what happened? So we can try to see if we can reproduce the issue on our end.

    Thanks,

    Thread Starter jberg1

    (@jberg1)

    Thanks Riza. Here is a screen shot. I added “When the content is updated” also to see if that would help. Maybe that Front End Submission plugin isn’t changing the status and just publishing without it ever setting to new first. Handy option would be “When created”. ?

    Basically the notification didn’t go out when the post was created. Only if I went in and manually changed the status from Publish to Draft, and then back to Publish then notification went.
    Thanks for your help.

    • This reply was modified 1 year, 7 months ago by jberg1.
    Thread Starter jberg1

    (@jberg1)

    Looking at this. The plugin uses wp_insert_post function to insert/update post. This might be an indication that it never changes the post status, but just creates the post by inserting it.
    See This thread

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @jberg1 So the issue is only for the post that submitted through Front End Submission plugin? Regular new post creation from WP-admin works fine?

    Thread Starter jberg1

    (@jberg1)

    Hey Riza,

    Yea, it is only for those posts done through the Front End Submission plugin. Looks like wp_insert_post function bypasses any kind of Status change. I’ve resolved by changing submitted posts status to Pending and setting up a function (using wp_schedule_event) to change those posts to published once a day, which then triggers the notification.
    Thanks for your time on this.

    • This reply was modified 1 year, 7 months ago by jberg1.
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Glad to hear that you found a solution for your issue!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Notification by Category’ is closed to new replies.