Your Time:
Our Time:
← Back to discussions

Events widget not showing nearest events first

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 6 replies, 3 voices, and was last updated 12 years, 6 months ago by MutantSnowCone.

  • 2014-02-02 at 10:29 pm
    Support Expired
    #2709
    hinchman
    Participant
    • Topics: 25
    • Replies: 44
    • Total posts: 69
    • Post count: 54

    Since I updated the theme to 1.7.2 I’ve noticed the events widget is showing the farthest away event first and not the closest upcoming event first. For example, it shows an event in may first instead of the event in feb first. How can I fix this?

    Thanks

    http://www.metrojethros.com

    2014-02-03 at 9:02 pm
    #2729
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    We will fix it and let you know.

    2014-02-06 at 6:10 am
    Support Expired
    #2801
    hinchman
    Participant
    • Topics: 25
    • Replies: 44
    • Total posts: 69
    • Post count: 54

    This hasn’t been fixed yet. See the screen shot. closest upcoming events should display first, so the MAy event should be last.

    2014-02-06 at 1:58 pm
    #2808
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Fixed it please check.

    2014-02-12 at 10:46 am
    Support Expired
    #2878
    MutantSnowCone
    Participant
    • Topics: 5
    • Replies: 5
    • Total posts: 10
    • Post count: 9

    I have the same problem with events appearing in reverse order. I’m also using theme version 1.7.2

    I currently do not have anything set in the Attributes > Order box as nothing I type seems to make a difference when the events are updated.

    Any suggestions would be helpful!

    2014-02-12 at 12:58 pm
    #2880
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Open muslcplay/framework/widgets/events.php

    After line#82 add the following line

    'order'			=> 'ASC',
    

    As shown in below code.

    if( $eventorder == 'upcomeing'){
    $query = array(
    	'post_type' 	=> 'events',
    	'meta_key' 		=> 'event_date',
    	'orderby' 		=> 'event_date',
    	'order'			=> 'ASC',
    	'tax_query' => array(
    	'relation' => 'OR',
    ),
    
    2014-02-13 at 12:45 am
    Support Expired
    #2894
    MutantSnowCone
    Participant
    • Topics: 5
    • Replies: 5
    • Total posts: 10
    • Post count: 9

    Perfect! Thanks!

You must be logged in to reply to this topic.