We want to be able to add an icon to events we’re running specials on, so for example if you chose the event category “Sewing”, on that list of classes, we’d have a red dot or something next to the result for a specific event that is on sale… We need some way to distinguish these special events…
Ok, so if you are asking how you can add something to the event itself so you know if your template should display the above, you can use post meta and just add a custom field to the ‘promotion’ events, like so – http://take.ms/3qfkAZ
That adds a custom field ‘promotional_event’ to the post meta, so then in your template you’d do something like:
$promotional_event = $event->get_post_meta('promotional_event', true);
if( $promotional_event ) {
// Output whatever you prefer for promotional events, in this case a red dot.
}
If you are looking for a more specific example I’d likely need to see your theme to give an idea of what you need to do.
The support post ‘Possible to add a special icon to some "Promotional" events?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.