• tokkilee

    (@tokkilee)


    I’m using Notifications to notify an admin when a CPT post is submitted using a front end acf_form().

    We’re getting the emails, but they seem to be messed up. The email formatting in the admin is:

    {vendors_title} has been added to the BlackBook database. {vendors_permalink}

    But the email we’re receiving is 1) missing the title 2) the permalink is messed up/formatted incorrectly and 3) the paragraph tags from the WYSIWYG are showing:

    <p> has been added to the BlackBook database. https://pitchblackbook.wpengine.com/?post_type=vendors & # 0 3 8;=1481 </p> (had to add spaces so it would show the formatting)

    • This topic was modified 5 years ago by tokkilee.
    • This topic was modified 5 years ago by tokkilee.
    • This topic was modified 5 years ago by tokkilee.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tokkilee

    (@tokkilee)

    Here’s a screenshot of the email formatting: https://www.dropbox.com/s/ion9n3rm5r7m9y5/screenshot_409.png?dl=0

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Hey, the acf_form isn’t a thing well tested on our end, but we recently introduced the backend processing feature which may help you with this one. Could you please enable it in the Notification settings and see if it helped?

    Thread Starter tokkilee

    (@tokkilee)

    Hmm changing it to background processing broke the entire email – I waited a good 10 minutes and didn’t receive any notification at all.

    The acf_form itself sends the title directly to post_title, and I even tried creating a custom merge tag to no avail. It’s weird that the other merge tags work (author’s name and permalink)

    I might be able to get around fixing this if we could get the permalink formatted correctly, any clues on that?

    Plugin Author Kuba Mikita

    (@kubitomakita)

    If the email wasn’t sent with Background processing it means your WP Cron may not be working properly.

    At the end, it’s all about the trigger action, it’s still to early to grab ACF data. When you submit a form with acf_form it probably creates the draft or revision post, then updates all the fields and meta.

    I’m, not sure if we’ll be able to hook in but I’m putting the acf_form integration on the to-do list.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Notification Emails Messed Up’ is closed to new replies.