Hello, I’m not sure that it will work as expected even if you have that information added. In its current state, its going to insert that information site-wide which include Event Espresso pages, WP pages, and blog posts.
A more flexible option would be to setup a plugin like WordPress SEO.
Then adjust SEO –> Titles and Metas –> Post Types –> Events to show the excerpt and save changes.
The next part will be to enter some information in the event excerpt area of the event editor and save changes. This will allow you to add a custom message while not affecting other non-event pages on your site.
Thanks for the suggestion. I have problems with that.
1. It does not have property=”og:description” attribute in the meta tag.
2. What should I write to get excerpt< in meta tag?
3. I can modify my function using an if block to apply the code only to events pages. But how do I get the date and time?
The support post ‘Get event date and time’ 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.