• Hi,

    For the New Post Published notification, I want to specify which user published the post, either instantly or by schedule.

    For example, an editor called John Smith might publish an article written by Jane Doe. I would then want the notification email to read something along the lines of ‘John Smith published BNFP is the best WordPress plugin by Jane Doe.’

    Documentation suggests the [display_name] shortcode references the person triggering the notification, but that doesn’t appear to be the case as [display_name] shows as the same as the post author.

    Hope my explanation is clear and thanks in advance for any help.

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

    (@voltronik)

    Hi @paizo,
    I would test this with the ‘recipient user shortcodes’ and the ‘user shortcodes’ as per this page to see if you can get your combination to work. There is also the Original Post Author: [post_author] shortcode you can use too, which may help.

    Let me know how you get on.

    Thread Starter paizo

    (@paizo)

    Hi Jack,

    Thanks for getting back to me.

    Tried the suggestions but to no avail. The recipient user shortcode calls the recipient name, while the user shortcode calls the author name, rather than the person currently logged in.

    I would have thought user shortcode would have been correct, but it doesn’t seem to work the way I’d imagined.

    Using the above example again, if an editor called John Smith publishes an article written by Jane Doe, a notification using the following code – ‘[display_name] published: [post_title] by [post_author]’ returns ‘Jane Doe published: Random Post by Jane Doe’

    What I’m trying to achieve is ‘John Smith published: Random Post by Jane Doe’

    • This reply was modified 5 days, 23 hours ago by paizo.
    Plugin Author Jack – BNFW

    (@voltronik)

    Hi @paizo,
    Thanks for testing. That all makes sense.

    Let me have a think about this scenario. As this is a long-standing notification in BNFW, any changes to it may break many notifications plugin users may have so I want to ensure that should any changes to this be made, they do not cause issues.

    Thread Starter paizo

    (@paizo)

    Thanks Jack, look forward to seeing what you come up with.

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

You must be logged in to reply to this topic.