Support

Home Forums Event Espresso Premium New Shortcode for Mailing

New Shortcode for Mailing

Posted: November 8, 2018 at 6:54 am


Atma

November 8, 2018 at 6:54 am

Hi,

it is possible to add own shortcodes for the different fields (subject, to, cc, content, …) for mailing?

* We want use shortcode [event-list] also for field subject.
* We want create own shortcodes. Is this possible? If yes, how?
* We have added some new fields to the event backend via advanced custom fields.
Now we want to add some of them in the content of the mails. Is this possible? If yes, how?

Best regards,
Daniela


Tony

  • Support Staff

November 8, 2018 at 7:34 am

Hi Daniela,

* We want use shortcode [event-list] also for field subject.

You mean the EE EVENT_LIST section? That’s not going to work in the subject field.

Can you provide more details on what your trying to do? I’m assuming a list of events the registrations are for?

* We want create own shortcodes. Is this possible? If yes, how?

Yes, its possible. I have some example of doing so here:

https://gist.github.com/Pebblo/e87cc8e30c4848dcdfe2
https://gist.github.com/Pebblo/dc011b43b461064a831d
https://gist.github.com/Pebblo/e03fe3a4fe02c2803a8786e63b8d6978
https://gist.github.com/Pebblo/41e82e9665e041f9fba092ab57de4891
https://gist.github.com/Pebblo/dc950fde4e8bfd5a70c6d6fc5e2ac9c7

Note those are not intended to be copy and paste solutions but examples of how you add the shortcodes and pull the data required.

* We have added some new fields to the event backend via advanced custom fields.
Now we want to add some of them in the content of the mails. Is this possible? If yes, how?

We have the [EVENT_META_*{meta_key}] shortcode which can be used to pull in event meta, however it depends on how the data is stored, if it’s a serilized object in the database the above isn’t going to work and you’ll need a custom shortcode to pull the data however ACF requires for that field type and then return the data you need.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 4 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[i]
[i]