I’ve used the the plugin ‘Better Notifications For WordPress’ along side ACF on several sites to notify admins of new posts submitted via a front-end form.
This has worked really well when the post is submitted as a draft and then published by an admin later or if the post is submitted directly from the dashboard.
But I can’t get it to send a notification if the front-end form is set to publish the post straight away, any ides?
Thanks
Here’s what I have in my form args:
$args = array(
'post_id' => 'new',
'form' => true,
'html_after_fields' => '<input type="hidden" name="post_type" value="resource_centre">',
'autocomplete' => 'false',
'field_groups' => array(236, 285),
'return' => home_url() . '/resource-thank-you',
'submit_value' => 'Add Resource',
'updated_message' => 'Done.'
);
Hi @leanda,
From your description it sounds like the issue is emerging from the Better Notifications For WordPress plugin.
Have you checked with this plugin’s author if they are aware of this?
Hi James
Thanks for replying. The plugin author confirmed that there is no notification for ‘Publish to Publish’ posts / pages as they can cause conflicts with other plugins that immediately publish posts.
Thanks
Leanda