Support

Home Forums Event Espresso Premium Page Title / Meta for Events

Page Title / Meta for Events

Posted: May 14, 2014 at 8:59 am


Dirk Zerenner

May 14, 2014 at 8:59 am

How can i display individual Event-Data like the Title as Page Title or Metadata?

Since it displays the Title of the Page with the Shortcode [ESPRESSO_EVENTS] i dont know which template files i should use.


Lorenzo Orlando Caum

  • Support Staff

May 14, 2014 at 1:27 pm

Hi Dirk,

This is available in Event Espresso 4 as the events are stored as custom post types.


Lorenzo


Dirk Zerenner

May 14, 2014 at 4:45 pm

Hi Lorenzo,

any chance to make it work with EE3? (even a hackish way) We don’t consider upgrading to EE4 soon and having an Event Name as a Site Title should be a pretty basic feature.

An easy way to query event data via the id would be a start for me. Or is the API addon necessary for this?

Thanks


Josh

  • Support Staff

May 15, 2014 at 9:16 am

Hi Dirk,

It turns out here is a non-hacky, non-JavaScript solution for this. WordPress has a wp_title filter that you can use to manipulate the title of the page regardless of the type of content that’s on the page.

Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin that will add the event name to the page’s meta title tag:

https://gist.github.com/joshfeck/d1e3446d78f4a16775cb

The support post ‘Page Title / Meta for 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.

Event Espresso