Support

Home Forums Event Espresso Premium Calendar plugin support

Calendar plugin support

Posted: April 10, 2018 at 3:00 pm


Troy

April 10, 2018 at 3:00 pm

Is there any way to pass the event city and just the start time to the calendar add on to display? It passes the event title by default.

example: Maple Grove 6:00 pm [shown all on one line]

I know you could change the event title to be what ever you wanted it to be but our event titles are rather long and it makes calendar messy with all that unnecessary text. The city & start time is the only thing that is relevant there.

Secondly, do you know if your calendar uses google markup to show events in google search results? See google search example:

Class Schedule – Chance for Life CPR IncChance for Life CPR Inc
chanceforlifecpr.com/class-schedule

Call or text (651) 283-7864 · Chance for Life CPR Inc. Menu Close Menu. Home · Class Schedule · BLS Provider CPR · Heartsaver CPR · Heartsaver First Aid · Driving Directions · Contact Us · About Us · ECARDS. Cathy Miller American Heart Association Instructor 4809 Weston Hills Drive, Eagan MN 55123 (651) 283-7864.
Wed, Apr 11
BLS CPR for Healthcare – Eagan
Thu, Apr 19
BLS CPR for Healthcare – Eagan
Wed, Apr 25
BLS CPR for Healthcare – Eagan


Josh

  • Support Staff

April 11, 2018 at 3:05 pm

Hi Troy,

The calendar does not have an option to show the City name instead of the date name. I can put in a request to make that part filterable, so a filter function callback could be used to change the output.

With regards to your second question about Google Search results, it sounds like you want to set a meta description tag. There are a number of SEO plugins that let you set a description meta tag. You could also use the event’s excerpt for the meta description tag. You add the following code to a site functions plugin:

function my_event_meta_description_tag() {
    if (is_singular('espresso_events')) {
        global $post;
        $meta_tag = '<meta name="Description" content="';
        $meta_tag .= 
            substr(
                strip_tags(get_the_excerpt($post->ID)), 
                0, 
                300
            );
        $meta_tag .= '">';
        echo $meta_tag;
    } 
}
add_action('wp_head', 'my_event_meta_description_tag');

Then add the description to the Event’s Excerpt field.

The support post ‘Calendar plugin support’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 6 months, 1 week ago ago

Topic Tags

Notifications

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