Posted: September 27, 2012 at 7:27 pm
|
What shortcode can I use to show the upcoming event first with all past events showing underneath that one in order of nearest to oldest. I tried changing the shortcodes.php code from ASC to DESC but that no longer works since the update. There was talk about this being a feature in the update. How can I make this change? Thanks |
Hello, Have you tried the [EVENT_LIST order_by=date(start_date),id] shortcode? You can use “Order By” parameters such as More here: https://eventespresso.com/wiki/shortcodes-template-variables/#event-list |
|
|
Yeah, I tried that and that shortcode actually doesn’t show anything on the page. I am currently using this code on this page (http://goo.gl/BEHs5)
|
|
Hi, I was playing around with this, an while I am still going to have a dev look into this in more detail, try this
I got my (small) sample data to show upcoming event first http://d.pr/i/Li75 |
|
Thanks Dean. When I added the code like you have it, nothing showed up. But if I just added the sort=”DESC” part to what I already had, it shows up in the correct order. Here is the full code I am now using:
Thanks! |
|
Glad you got it sorted! |
|
I’m having trouble sorting as well, and none of the above shortcode configurations are working for me. I’m trying to achieve the following: The shortcode I’m currently using is: And you can see what it’s doing and not doing here: The shortcode is currently Any ideas? |
The support post ‘Showing Upcoming Event First’ 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.