Posted: March 5, 2014 at 3:22 am
|
I use Ee4. <code><?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?> <?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_venue_name' ); ?></code> If I don’t use espresso_events-tickets, venue name isn’t shown. Why? <code><?php // espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?> <?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_venue_name' ); ?></code> I need to hide the espresso_events-tickets and show the espresso_venue_name. Can you help me? |
|
Hi, What version of EE4 are you using please? And have you removed the espresso_events-details code already? It seems to be missing. |
|
Hi, <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”> global $post; ?> <div class="post-thumbnail"> </div> <div class="event-header<?php echo $event_class;?>"> </div> <div class="espresso-event-wrapper-dv"> espresso_events-venues and espresso_venue_name don’t work if I disable espresso_events-tickets |
Hi there, espresso_venue_name shouldn’t work either way, except unless you have made an espresso_venue_name template and uploaded it to your theme. |
|
|
Yes, I copied this file content-espresso_events-venues.php in my theme dir. |
Not necessarily. But either way espresso_venue_name isn’t a template part, it’s a template tag. So it’s used like this: <?php espresso_venue_name(); ?> |
|
The support post ‘Show venue in ESPRESSO_EVENTS shortcode’ 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.