Support

Home Forums Event Espresso Premium [EVENT_ESPRESSO_CATEGORY event_category_id="abcd"] listing limit ?

[EVENT_ESPRESSO_CATEGORY event_category_id="abcd"] listing limit ?

Posted: February 13, 2018 at 9:10 pm


sbadwebsite

February 13, 2018 at 9:10 pm

Hi,
How can i limit the list of events under a specific category using shortcode [EVENT_ESPRESSO_CATEGORY event_category_id=”abc”] . Currently this shortcode [EVENT_ESPRESSO_CATEGORY event_category_id=”st%e2%80%a2art-1334218016″] is listing all the events but i want only to list latest 2 events .How can i do it ?


Tony

  • Support Staff

February 14, 2018 at 5:22 am

Hi there,

You should be able to use:

[EVENT_LIST event_category_id=st%e2%80%a2art-1334218016 limit=2]

EVENT_ESPRESSO_CATEGORY is basically a wrapper for EVENT_LIST.


sbadwebsite

February 14, 2018 at 8:06 pm

Thanks for your reply .
Can we just show normal lists without any register buttons or so .I mean i just want to show the name of the event not any graphics or register button .


Josh

  • Support Staff

February 15, 2018 at 6:31 am

One way to show a list without any register buttons would be to make edits to the event_list_display.php & event_list.php templates. There’s more information about how to do that in the documentation:

https://eventespresso.com/wiki/put-custom-templates/


sbadwebsite

February 15, 2018 at 8:21 pm

Thanks Josh,
How can we do ascending and descending in shortcodes ?
Will it work : [EVENT_LIST event_category_id=st%e2%80%a2art-1334218016 limit=2 DESC]


sbadwebsite

February 15, 2018 at 8:24 pm

I do not want to show the expired events like i do not want to show an event which is scheduled yesterday .


Josh

  • Support Staff

February 16, 2018 at 8:08 am

I can point you to the documentation which includes all the syntax for filtering and ordering:

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

Please note when you set sort you will also need to set order_by.

The support post ‘[EVENT_ESPRESSO_CATEGORY event_category_id="abcd"] listing limit ?’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 8 months, 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!