Support

Home Forums Event Espresso Premium [EVENT_LIST] shortcode

[EVENT_LIST] shortcode

Posted: February 4, 2020 at 7:07 pm

Viewing 3 reply threads


goldstreetstudios

February 4, 2020 at 7:07 pm

Hello,
I tried to use the [EVENT_LIST] shortcode but got nothing (just the shortcode itself displayed on the page). Is this still a valid shortcode in the current version of EE4? 4.10.3.p

Is there any alternative way to show just a list down the page with date, name of event, cost, places available

Thanks
Kitka


Josh

  • Support Staff

February 5, 2020 at 9:35 am

Hi,

I’m afraid that wasn’t a valid shortcode for EE4. The shortcode to show a list of events is [ESPRESSO_EVENTS]


goldstreetstudios

February 6, 2020 at 4:46 pm

Thanks for your reply. In the previous version of EE4 I had a page template that showed events in a table, but sadly it no longer works in this new version. Are you able to advise how to change the code in that template to make it work again? I will paste below in case you can help.
Kitka

<?php

/**
* Description: A Page Template for the Events Planner event list.
*
* @package WordPress
* @subpackage Events Planner (wpeventsplanner.com)
* @since Events Planner 1.1
*
* !!!! PLEASE DO NOT CHANGE THE FILE NAME !!!!
*/
/*
* Since different Themes use different container names, you can modify the wrapper div ids and classes below with the appropriate name
*
*/

global $event_list;
?>

<div id=”event_list_wrapper”>
<table width=”723″ border=”0″>
<tbody>
<?php

/* custom event list loop */
if ( $event_list->have_posts() ):

while ( $event_list->have_posts() ) :

$event_list->the_post();

/*
* after $event_list->the_post(), a global var called $event_details is created with all the event
* meta information (dates, times, …). The template tags below go off of that variable.
* You can uncomment the next line to see what is in the variable and echo out individuall pieces of information if you desire.
* echo “

" . print_r($event_details, true). "

“;
*/
global $event_details;

/*
* As you can see, all the information is wrappeed in divs. The styling comes from events-planner > css > events-planner-style1.css
* You can copy the style into your theme and modify
*/

//echo “THIS MESSAGE COMES FROM THE EVENT SUBPAGE TEMPLATE”

/*
* ######### BEGIN CUSTOMIZABLE SECTION ##########
*/
?>
<tr>
<td width=”20%”><?php foreach ($event_details[‘_epl_start_date’] as $date_id => $timestamp){
echo date_i18n(‘F j, Y’, $timestamp);
}?></td>
<td>” title=”<?php the_title(); ?>”>
<?php the_title(); ?>
</td>
<td><?php // echo get_the_register_button(); ?></td>
</tr>
<?php
/*
* ######### END CUSTOMIZABLE SECTION ##########
*/
endwhile;
else:
?>
<tr>
<td> Sorry, there are no events currently available</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>


Tony

  • Support Staff

February 7, 2020 at 4:39 am

Hi Kitka,

That template isn’t from a previous version of Event Espresso 4 and will have never worked with EE4, it’s from another events management plugin called wpeventsplanner.

You’ll need a new template to work with EE4 events.

To display EE4 events in a table you could use the Table View template add-on:

https://eventespresso.com/product/eea-events-table-view-template/

Viewing 3 reply threads

The support post ‘[EVENT_LIST] 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.

Event Espresso