• Resolved robhilken

    (@robhilken)


    I seem to be having the same problem described in this post – https://www.ads-software.com/support/topic/event-listing-sorted-by-date-descending/

    I am displaying past events using a shortcode and want them displayed with the most recent events first, but when I use order=”DESC” it doesn’t change the order around.

    I have all the settings set to descending in the back end, and that makes no difference either.

    I changed it to ascending to see if that changed it but that didn’t make any difference to what was displayed.

    This is the shortcode I am using: [events_list scope=”past” limit=12 pagination=1 orderby=”event_start_date” order=”DESC”]

    I think this looks like a bug to me.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    we tried the shortcode above and seems working fine on our test servers? looking at your test link can I know how did you created the grid style?

    Thread Starter robhilken

    (@robhilken)

    Hi,

    That is done with CSS only….

    /* Event Manager Plugin CSS */
    
    .event-thumb {
      min-width:220px;
    	width:33.33333%;
    	float:left;
    	padding:10px;
    	height:490px;	
    }
    
    .event-image { 
        width: 200px; 
        height: 135px; 
        overflow: hidden; 
        margin: 15px 0;
    }
    
    .event-image img { 
        width: 100%;
    }	
    
    .event-thumb h2 {
    	clear:left;	
    }
    
    .event-thumb h3 {
    	/* min-height:55px;	*/
    }
    
    .event-thumb ul {
    	list-style-type:none !important;
    	list-style:none;
        -webkit-padding-start: 0;	
    }
    .event-thumb li > ul {
    	margin:0 0 10px 0;
    }
    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry we are unable to replicate this on our test servers and seems working fine.

    I have tested it to on my live MS and single localhost. Both do not sort desc.

    Hello,

    Could it be because the shortcode have curly quotes rather than normal quotes? I have tested both ASC and DESC and it seems to work.

    Here is a screenshot of the difference: https://monosnap.com/file/LE6KuuW7Hyy8GNIokhy9CimpPWUXuO

    Test A: Past Events from March 2019 (Reccent) to Older
    [events_list scope="past" limit="12" orderby="event_start_date" order="DESC"]

    Test B: Past Events from Oldest to March 2019 (Reccent)
    [events_list scope="past" limit="12" orderby="event_start_date" order="ASC"]

    • This reply was modified 5 years, 8 months ago by timrv.
    Thread Starter robhilken

    (@robhilken)

    Thank you @timrv, that was the issue for me!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘events_list shortcode can’t order by date DESC’ is closed to new replies.