Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Jack – BNFW

    (@voltronik)

    Hi Bardia,
    Thanks for your message.

    When you say “new post type” do you mean “New Post Published”?
    What exactly isn’t working for you?

    Let me know.

    Thanks,
    Jack

    Thread Starter Bardia

    (@boddiz)

    Custom post type called cars.

    “‘Cars’ Update” notification working, but not “New ‘Car'”.

    Understand? =)

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi Bardia,
    Thanks but what’s not working?

    Is the notification editor broken? Is the notification not being sent? Is it being sent but not being formatted correctly?
    Please elaborate and provide as much detail as possible. I should then be able to help.

    Thanks,
    Jack

    Thread Starter Bardia

    (@boddiz)

    Hi Jack!

    Is the notification editor broken?
    No, looks fine.

    Is the notification not being sent?
    Yes, not beeing sent (also double checked this with the email logging plugin)

    I troubleshooted a while before posting, but not sure what other details you need.

    The only modification make in the Twenty sixteen theme was adding the custom post type via functions.php in order to be able to test this notification with this theme.

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi Bardia,
    Ok, thanks for clarifying.

    Does the ‘New Post Notification’ work for regular Posts?

    Thanks,
    Jack

    Thread Starter Bardia

    (@boddiz)

    Hi Jack!

    Does the ‘New Post Notification’ work for regular Posts?
    Nope. (But “Post Updated” works here too…)

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi Bardia,
    In that case, can you follow this help document and let me know how you get on? https://betternotificationsforwp.com/how-can-i-receive-the-best-support/

    Thanks,
    Jack

    Thread Starter Bardia

    (@boddiz)

    Done that.

    Did actually try on a fresh install.

    Seems like ‘editor'(the_content) have to contain data to fire. So got “wp default post” type working by this.

    My CPT is still not firing…

    Can you see anything (extracted from register_post_type) below that should be different for my CPT to work?

    ‘public’ => true,
    ‘publicly_queryable’ => false,
    ‘exclude_from_search’ => false,
    ‘show_ui’ => true,
    ‘query_var’ => true,
    ‘capability_type’ => ‘post’,

    Thread Starter Bardia

    (@boddiz)

    Hmm,

    Found some issues:

    1. When using norwegian letters in the_title “new cpt” notification will not fire.
    2. When using acf_form (acf plugin) to post (create post) from front end the “new cpt” notifiation will not fire.

    Any thoughts?

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi Bardia,
    Thanks for investigating further.

    1. I’ll look into that.
    2. That sounds right. Most of the time, when front end forms are used, they’re not inserted using post status transitions and so BNFW can’t them up.

    Jack

    Plugin Author Jack – BNFW

    (@voltronik)

    Can you also give an example of a Norwegian title so that I can test it from my end?

    Bardia said:

    When using acf_form (acf plugin) to post (create post) from front end the “new cpt” notifiation will not fire.

    voltronik said:

    That sounds right. Most of the time, when front end forms are used, they’re not inserted using post status transitions and so BNFW can’t them up.

    I believe the suggestions for slight code changes that I’ve suggested at the end of this thread will solve that problem.

    Plugin Author Jack – BNFW

    (@voltronik)

    Closing due to inactivity. If you need further help with this, please feel free to re-open this thread.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘"Update post type" working, not "new post type"’ is closed to new replies.