Support » Plugin: XT Event Widget for Social Events » Events not in chronological order

  • Resolved coclimburgpr


    The events in the widget are not in a chronological order. Events from September and Oktober are crossing each other. Is there an option to change the order, so that the upcoming events will appear first? See screenshot:

Viewing 4 replies - 1 through 4 (of 4 total)
  • *I noticed that this appears when you add external events to your Facebook Page. Facebook shows it in the right order, but the plugin does not.

    Plugin Author Dharmesh Patel


    Hello @coclimburgpr,

    Thanks for the reaching out to us and sorry for the delayed reply.

    Can you please provide facebook page ID or facebook page URL so we can investigate the exact issue.

    Xylus Themes

    I’m having the same problem also. My facebook page is and you can see the behaviour at

    Feb 2018 event, then September 2017, March 2018 (all three on first line) then May 2018 (on the second line, but in the middle spot).


    I have been able to fix this by adding some code to the file “class-xt-facebook-events-facebook.php”

    In the function “render_facebook_event_listing” before the foreach loop I added the following code

    function cb($a, $b) {
    return strtotime($a->start_time) – strtotime($b->start_time);
    usort($facebook_events, ‘cb’);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Events not in chronological order’ is closed to new replies.