Support

Home Forums Event Espresso Premium how to populate the event name in tag

how to populate the event name in tag

Posted: May 9, 2013 at 3:44 pm


chris falkenstein

May 9, 2013 at 3:44 pm

how can i display the event’s title in the <title> tag?  i figured this would be standard practice.  any suggestions?


Dean

May 13, 2013 at 3:55 am

Hi Chris,

Due to the way the events are set up, they all actually run on one page (by default this is the event registration page).

As such WordPress uses the page name for the title.

In order to have a dynamic system in place you would need to create a page template with a reference to a custom header file that would pull in the event title and use that in place of the default one.

You should be able to use the following php in the title html

<?php echo $all_meta['event_name']; ?>

Going forward, 4.0 and beyond will be using a custom post type system that will allow things like this either automatically or with more ease.


Josh

  • Support Staff

December 6, 2013 at 9:02 pm

Or you can install this plugin:

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

The support post ‘how to populate the event name in tag’ 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