Support

Home Forums Event Espresso Premium Event Page redirect is not working properly

Event Page redirect is not working properly

Posted: May 12, 2016 at 9:21 pm


shoot360

May 12, 2016 at 9:21 pm

When we choose our default blank page to post the event page, it pulls one of our empty blog pages here: http://shoot360.com/events/summer-camps-vancouver/

What we want is for it to go to a blank page and we used the short link to redirect to a new page, but not all the information follows (the facility and description info gets dropped): http://shoot360.com/vancouver-summer-camps/. Can you please suggest how to fix this so we get our total event to redirect to a blank page?


Tony

  • Support Staff

May 13, 2016 at 5:44 am

Hi there,

When we choose our default blank page to post the event page, it pulls one of our empty blog pages here: http://shoot360.com/events/summer-camps-vancouver/

Do you mean when selecting a blank page template? Within this section – http://take.ms/oZEzv

If so that is expected. EE events are custom post types, they will be displayed by your theme like a standard ‘post’, but Event Espresso will hook in an inject the event details when needed.

What we want is for it to go to a blank page and we used the short link to redirect to a new page, but not all the information follows (the facility and description info gets dropped): http://shoot360.com/vancouver-summer-camps/

If you use the [ESPRESSO_TICKET_SELECTOR] shortcode EE will only display the ticket selector. We currently do not have a shortcode to pull in all of a single events details for use within a page.

Can I ask why you want to link to a different page? Is it just because of the template?


shoot360

May 13, 2016 at 5:02 pm

Yeah we chose the template that is our blank page but it’s pulling the blog page, which squeezes the ticketing box (see first link in body) and forces us to redirect again to a blank page.


Tony

  • Support Staff

May 16, 2016 at 5:07 am

So rather than manually re-directing all of your events to a new page, which you would need to do for each new event, I would recommend creating a template for the EE events based on the output you prefer to use (likely your blank page template file).

You can then name that single-espresso_events.php and WordPress will automatically load that template for EE events.

Is this a custom theme you are using or one you have purchased?

Are you familiar with WP templates?


shoot360

May 19, 2016 at 12:42 pm

Thanks Tony, we are working we the company who created our website to do exactly that.


Tony

  • Support Staff

May 19, 2016 at 12:54 pm

Something you should know when doing this:

single-espresso_events.php (for the single event view eg /event/my-awesome-event/)

and

archive-espresso_events.php (for the event list eg /events/)

Are expected to be used when you take over ALL of the output from event espresso, meaning EE stops injecting the event details and lets you manually call in every detail within the template.

EE hooks into the_content() and injects the event details into that call for the post, however EE will NOT do this if you use those templates by default.

You need to add:

add_filter( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );

and

add_filter( 'FHEE__EED_Event_Archive__template_include__allow_custom_selected_template', '__return_true' );

To your themes functions.php file to tell EE to continue to do so.

This means you can alter all of the page layout and just call the_content() to continue to use the inbuilt order system EE has under:

Event Espresso -> Events -> Templates.

This may not mean anything to yourself but will likely help your developers.


shoot360

May 19, 2016 at 2:04 pm

Appreciate this!

The support post ‘Event Page redirect is not working properly’ 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