Using tokens in email
-
Hey, I created a trigger that sends an email when a custom post type called ‘Tenders’ is created with a custom taxonomy term of ‘open’.
First problem, when I use the custom post type token in the email action it injects the custom post type plural name, not the singular name. So the following:
A new {{52:USERSPOST:WPPOSTTYPES}} has been created
creates: A new Tenders has been posted – but should be
A new Tender has been posted.
Also in the body I use the following:
A new {{52:USERSPOST:WPPOSTTYPES}} called {{52:USERSPOST:POSTTITLE}} has been created with a Tender type of {{52:USERSPOST:WPTAXONOMYTERM}}
Which creates Tenders in plural and Privacy Policy instead of taxonomy term – see below:
A new tenders called Our new Tender has been created with a Tender type of Privacy Policy
It should create:
A new Tender called Our new Tender has been created with a Tender type of open
Is this a bug or am I using the incorrect tokens?
Thx ??
- The topic ‘Using tokens in email’ is closed to new replies.