Support

Home Forums Event Espresso Premium View Details button

View Details button

Posted: February 18, 2018 at 3:52 pm

Viewing 3 reply threads


tsca

February 18, 2018 at 3:52 pm

At one point when I first setup events there was a View Details button for each event on the listing page. Now the buttons are gone.

No matter what options I select in events > templates, it doesn’t make the buttons reappear. Also add/removing excerpts doesn’t seem to solve the problem.

What am I missing?


Tony

  • Support Staff

February 19, 2018 at 6:28 am

Hi there,

There are many reasons that can happen, can you link me to the page you are viewing?

Are you using custom templates to output the EE details?

If you temporarily switch to a default theme such as twentyseventeen and view the output, does it show the View Details button then?

Do your events have the ‘Show ticket selector’ option set to yes?


tsca

February 19, 2018 at 6:54 am

Thanks Tony.

Ok I changed to the parent theme and they appeared, so its something to do with my customisation.

Im using a copy of ‘archive-espresso-events.php’ for my listing page. It has my own html/php, plus a shortcode to display the listings:

<?php echo do_shortcode(“[ESPRESSO_EVENTS]”); ?>

You might be able to tell – Im not that sure of what Im doing! Could I be doing something wrong here? Display ticket selector is set to ‘yes’.

Unfortunately I’m not at liberty to publicly share the url – its in development.
Thanks


Josh

  • Support Staff

February 19, 2018 at 2:04 pm

Hi tsca,

You’ll need to remove the line of code with the do_shortcode and replace with a WordPress loop like this:

<?php if (have_posts()) :
while (have_posts()) : the_post();
espresso_get_template_part('content', 'espresso_events');
endwhile;
espresso_pagination();
else :
espresso_get_template_part('content', 'none');
endif; ?>

Then, you’ll need to add the following to your theme’s functions.php file:
add_filter( 'FHEE__EED_Event_Archive__template_include__allow_custom_selected_template', '__return_true' );

Viewing 3 reply threads

The support post ‘View Details button’ 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