Support

Home Forums Event Espresso Premium Event not displaying

Event not displaying

Posted: July 23, 2014 at 1:25 am


David Holland

July 23, 2014 at 1:25 am

I have created an event in EE4 on http://exela.co.uk/events/lifecycle-marketing/ but it doesn’t display. I have looked carefully (a lot) at the settings but I can’t spot an issue.


Tony

  • Support Staff

July 23, 2014 at 7:12 am

Hi David,

Its possible the theme is doing something unexpected with archives and/or single posts.

If you install the Theme Test Drive* plugin and activate one of the default themes through that can you view the event?

*Theme test drive allows admins to test a theme without switching the theme live on the site.


David Holland

July 23, 2014 at 8:31 am

The event is visible in twenty fourteen but not with the theme of the site.
How would I make the events work with me theme?


Josh

  • Support Staff

July 23, 2014 at 2:54 pm

Hi David,

I checked the theme and it looks like one of the themes that can be purchased from Themeforest, is that correct?

If so, there’s likely a fix that can be added to the theme to stop it from removing the filters from the WordPress content. There have been similar issues with other Themeforest themes. I’ll look through the archive of the other support requests involving Themeforest themes and update this post if I find an example of some code that might help.


Josh

  • Support Staff

July 23, 2014 at 3:04 pm

This is the code I was thinking of:

add_action( 'template_redirect', 'remove_razors_content_filters' );
function remove_razors_content_filters() {
    global $post_type;
    if ( $post_type == 'espresso_events' ) {
        remove_filter( 'the_content', 'the_content_filter', 1 );
    }
}

It fixes the “Razor” theme from Themeforest. It might work for your theme too. If it does not, you could check with the theme author and ask them if they are removing anything from or adding anything to the WordPress content filter, and if they are, what exactly is the hook and callback function they’re using to do this.

Event Espresso 4 adds the event content to the WordPress content filter, so when a theme alters the_content() it can have the unintended consequence of removing the event content from the page. It can be worked around though by using a function like the one above.


David Holland

July 25, 2014 at 5:34 am

Thanks Josh. I have posted this in the theme forum and I am waiting for a sensible answer!


Dean

July 25, 2014 at 6:31 am

Please keep us updated!

The support post ‘Event not displaying’ 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