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
Is combining shortcodes possible? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Is combining shortcodes possible?

Is combining shortcodes possible?

Posted: July 23, 2013 at 12:10 am

Viewing 3 reply threads


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

  • Support Staff

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

  • Support Staff

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.

Viewing 3 reply threads

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