Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Show past events in a category | Event Espresso - Staging Server

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

  • Support Staff

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

  • Support Staff

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 - Staging Server