Support

Home Forums Community Forum EVENT ESPRESSO LITE ORDER OF EVENTS

EVENT ESPRESSO LITE ORDER OF EVENTS

Posted: March 20, 2014 at 11:35 am

Viewing 7 reply threads


Tony Gutierrez

March 20, 2014 at 11:35 am

Hi, i’m trying to change the order of how events are displayed on this site “www.socialight.tv/events/”. As it is right now, it shows the oldest first and the newest at the bottom… How can i switch this around?

Thanks!


Tony Gutierrez

March 20, 2014 at 11:35 am

Hi, i’m trying to change the order of how events are displayed on this site “www.socialight.tv/events/”. As it is right now, it shows the oldest first and the newest at the bottom… How can i switch this around?

Thanks!


Lorenzo Orlando Caum

  • Support Staff

March 20, 2014 at 2:22 pm

Hi Tony,

Please ensure that your plugin is up to date. If not, please backup your WordPress and update to the current version.

Then take a look at the sort options available here:

https://eventespresso.com/wiki/shortcodes-template-variables/#event-list

Best


Lorenzo


Tony Gutierrez

March 20, 2014 at 3:46 pm

Im currently using the [ESPRESSO_EVENTS] shortcode on my EVENTS page… I cant open the page you are sending me because it says “The page you are trying to access is reserved for VIP Members and registered Event Espresso users. Please purchase a support license for Event Espresso, VIP access or log-in. If you think you are receiving this message in error, contact us.”

HELP!


Dean

March 21, 2014 at 1:37 am

Hi Tony,

OK, a little bit of info first.

The [ESPRESSO_EVENTS] shortcode is very important and basically everything routes through that page. Therefore you need it and it should be published and accessible.

That being said, I would advise you not to use that page as your main event’s list page. Instead hide it (remove it from your site menu) and create a page using the [EVENT_LIST] shortcode.

The Event List shortcode displays the same date as the ESPRESSO_EVENTS one, but has two major differences:

1) it supports parameters such as sort order
2) you can use it multiple times on a single page or across multiple pages.

There are a variety of parameters with the EVENT_LIST shortcode (see below) but for your needs, I would use the following:

[EVENT_LIST order_by=date(start_date) sort=DESC]

[EVENT_LIST]
[EVENT_LIST limit=1]
[EVENT_LIST show_expired=true]
[EVENT_LIST show_deleted=true]
[EVENT_LIST show_secondary=true]
[EVENT_LIST show_recurrence=true] (for recurring events)
[EVENT_LIST category_identifier=your_category_identifier]
or
[EVENT_LIST event_category_id=your_category_identifier]
[EVENT_LIST events_per_page=10] (adds pagination to the event list)
[EVENT_LIST order_by=date(start_date),id]
[EVENT_LIST sort=DESC] sort in a descending order – must be used in conjunction with order_by
examples: order_by=start_date -or- order_by=event_name
[EVENT_LIST sort=ASC] sort in an ascending order – must be used in conjunction with order_by
[EVENT_LIST staff_id=”1″] show only events assigned to a staff member (number is staff members ID)
[EVENT_LIST css_class=my-custom-class] adds a class to every event so you can style event lists differently. just change the “my-custom-class” to your actual CSS class.

Order by parameters:
(comma separated)
id
date(start_date)
date(end_date)
event_name
date(registration_start)
date(registration_end)
city
state
category_id
venue_title


Lorenzo Orlando Caum

  • Support Staff

March 21, 2014 at 9:52 am

Tony,

There are also additional shortcodes available for other areas of Event Espresso. Login to your WordPress admin. Then go to Event Espresso –> Help/Support.

From here you can click on Shortcodes in the Quick Links page or just scroll down to find it.

Cheers


Lorenzo


Tony Gutierrez

March 25, 2014 at 8:03 am

THANK YOU SO MUCH DEAN & LORENZO!!! THIS SOLVED MY PROBLEM PERFECTLY! THANKS A LOT!!!


Tony Gutierrez

March 25, 2014 at 8:06 am

Is there any way to only show the last 3 events without pagination? I know that events_per_page=3 works but it leaves pagination… anyway to just show the latest 3 events?


Tony

  • Support Staff

March 25, 2014 at 8:39 am

Hi Tony,

You should be able to achieve this using the ‘limit’ parameter.

[EVENT_LIST limit=3] should limit the list to 3 events.

Viewing 7 reply threads

The support post ‘EVENT ESPRESSO LITE ORDER OF EVENTS’ 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