Viewing 5 replies - 1 through 5 (of 5 total)
  • Seems either the actual template file being used is not displaying the correct date – or another plug-in is altering the order in which the events are altered.

    On a fresh install, with TwentyEleven theme, everything works as expected – so you may wish to deactivate your plug-ins and theme just in case tehre is a conflict.

    Thread Starter asafche

    (@asafche)

    nop. without any other plugin and with twenty eleven it’s still behaving the same.
    other two things i’ve encountered that maybe can indicate a bigger problem:
    in the admin panel event list, clicking on “Start Date/Time” doesn’t change anything in the order of the events, and somehow that odd order is the same order of the event in archive-event page.

    See This.
    thanks.

    This is odd. I haven’t been able to replicate this issue – so it may be due to a corrupted install. Re-installing the plug-in may work, but before that you may want to put WordPress into debug mode and see if that highlights any problems.

    I noticed you had phpmyadmin up – do the dates appear correctly in database, do they show correctly in the admin calendar?

    Thread Starter asafche

    (@asafche)

    what do you mean by appear correctly?

    Do the events appear on the right dates in the admin calendar, do they appear correctly in the database table?

    I’m just trying to ascertain where the error is – in the database or somewhere between that and when they are displayed. It sounds like the latter – and potentially the ORDER BY statement is being ignored / over-ridden.

    As per this codex you can print the query to see what is actually being queried – that will help determine if the query is not correctly formed (e.g. incorrect ORDER BY )

    function my_posts_request_filter( $input ) {
    	print_r( $input );
    }
    add_filter( 'posts_request', 'my_posts_request_filter' );

    That will print every query – so you may see a number of them (front end and back-end).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mess in events order, and i can't understand why’ is closed to new replies.