Support

Home Forums Event Espresso Premium Show past events in a category

Show past events in a category

Posted: June 25, 2013 at 1:16 am

Viewing 5 reply threads


luovajohtaja

June 25, 2013 at 1:16 am

How do I show past events in a specific category?

[EVENT_ESPRESSO_CATEGORY event_category_id=”XXX” order_by=date(start_date)]

works ok for me but it shows only upcoming events. I’d like to have 2 different lists on a page: upcoming and past events. How can I do it?

Thanks!


Dean

June 25, 2013 at 1:49 am

Hei,

There isnt any shortcodes that can do that currently. The closest would be the [EVENT_LIST] shortcode using both the expired= true and the category attributes. However that will still show both the current and expired events.

There are two options to do what you want though neither is ideal

1) Create a custom shortcode that pulls out the right data.

2) Use categories, so that an expired event is (manually) given a category such as “expired” and then that can be used to filter those events into a separate list.


luovajohtaja

June 25, 2013 at 2:04 am

Hei,

Thanks for your help! I really appreciate it. I’ll do the 2 choice. Thanks!


luovajohtaja

June 25, 2013 at 2:19 am

I tried the 2 choice. I updated the category of a past event. Then used this sortcode on the events page:

[EVENT_LIST event_category_id=”XYZ” expired= true]

No events shown. Am I using the shortcode wrong?


luovajohtaja

June 25, 2013 at 2:21 am

Nevermind. I found the error. =)


Dean

June 25, 2013 at 2:22 am

Hi,

Check the Category ID in the Category page. If you left it as default when creating the category it usually ends up as something like “category-585858756”

A screenshot with an example category id

Viewing 5 reply threads

The support post ‘Show past events in a category’ 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