Support

Home Forums Event Espresso Premium Event details showing more than just details

Event details showing more than just details

Posted: January 12, 2017 at 11:27 am

Viewing 8 reply threads


keynoteevents

January 12, 2017 at 11:27 am

I’m setting up a custom template using content-espresso_events.php from Espresso_Arabica_2014. I want to have my content in 2 columns.
Column 1 has template parts espresso_events-header, espresso_events-datetimes, espresso_events-venues, espresso_events-tickets.
Column 2 has espresso_events-thumbnail, espresso_events-header, espresso_events-details

In column 2, espresso_events-details is showing more than just the event description. I also get espresso_events-datetimes, espresso_events-venues and espresso_events-tickets showing up in that column.
If I put the exact same line of code in column 1 and in column 2 I get just the description in column 1 but all details in column 2.

How do I get rid of the additional information in column 2. I only want the event description. I also tried using just the_content();, but I get the same thing, all event info instead of just description.

I have Use Custom Display Order set to No under Events > Templates
The add_filter (line 21) is commented to off on content-espresso_events.php


Josh

  • Support Staff

January 13, 2017 at 9:23 am

You shouldn’t use the espresso_events-details template part in your case.


keynoteevents

January 13, 2017 at 10:30 am

What should I use then to display the information that I want to display. How do I show just the event description?


Josh

  • Support Staff

January 13, 2017 at 12:12 pm

You can show just the event description by using a template tag like:

<?php echo espresso_event_content_or_excerpt( 55, null, false ); ?>


keynoteevents

January 18, 2017 at 9:48 am

That didn’t work. It’s still showing more than just the event description. I’m still getting the tickets, event times and venue information.

This is the code that I’m using:

<div id="espresso-event-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
		<?php echo espresso_event_content_or_excerpt( 55, null, false ); ?>		
	</div>

	<div class="espresso-event-wrapper-dv">
		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
		<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
		<hr>
		<?php //espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
		<footer class="event-meta">
			<?php do_action( 'AHEE_event_details_footer_top', $post ); ?>
			<?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?>
		</footer>
	</div>


Tony

  • Support Staff

January 18, 2017 at 9:51 am

Do you have either of these 2 filters active:

//* Allow the custom display order option to work with the archive-espresso_events.php theme template file
add_filter( 'FHEE__EED_Event_Archive__template_include__allow_custom_selected_template', '__return_true' );

//* Allow the custom display order to work with the single-espresso_events.php theme template file
add_filter( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );


keynoteevents

January 18, 2017 at 9:52 am

The only information that should be showing in the div.espresso-event-header-dv should be:
– espresso_events-thumbnail
– espresso_events-header
– event description (no tickets, no venue, not dates)

in div.espresso-event-wrapper-dv it should show:
– espresso_events-header
– espresso_events-datetimes
– espresso_events-venues
– espress_events-tickets

I have an hr in there and the line for the espresso_events-detailed in there commented out just for testing purposes.


Tony

  • Support Staff

January 18, 2017 at 10:06 am

Yes, but do you have either/or both of those two filters I posted active on the site, for example are they within functions.php of your theme?

If so you’ll need to remove the, they tell EE to continue to inject the event details into the_content even when loading custom templates.


keynoteevents

January 18, 2017 at 11:18 am

That fixed it! Sorry Tony, I didn’t see your response between my 2 posts this morning.

I had this in my functions.php file:

//* Allow the custom display order to work with the single-espresso_events.php theme template file
add_filter( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );

Thank you! This has been driving me crazy.

Viewing 8 reply threads

The support post ‘Event details showing more than just details’ 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