Support

Home Forums Event Espresso Premium Is combining shortcodes possible?

Is combining shortcodes possible?

Posted: July 23, 2013 at 12:10 am


Michael

July 23, 2013 at 12:10 am

I want to list events that belong to a category, but only display the ones that have not passed.

So I know how to list my category events: [EVENT_LIST event_category_id=your_category_identifier]

How do I hide the events in this category that have already expired?
Can I mix it with the [EVENT_LIST show_expired=false]?

Is that possible?


Dean

July 23, 2013 at 1:38 am

Hi Michael,

I think you mean adding more than one attribute, which is definitely possible

so a shortcode such as

[EVENT_LIST show_expired=true category_identifier=”xxxx” events_per_page=10 order_by=date(start_date) sort=DESC]

is perfectly fine, though some combinations will obviously not be great or will cancel each other out (you cant have sort=DESC and sort=ASC at the same time for instance.)


Michael

July 23, 2013 at 2:06 am

Great, so I know it works, but it’s reflecting on my site.
I am using: [EVENT_LIST show_expired=false category_identifier=”csoc”]

But events that end earlier still shows up.
Could recurring events be affecting this?


Dean

July 23, 2013 at 3:07 am

Hey,

Sort of, it depends on how the recurring events are set up. If their registration period has expired then they wont show up in the list via that shortcode you linked.

If their registration dates are still valid they will. So you need to check how the recurring events are set up.

The support post ‘Is combining shortcodes possible?’ 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