Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ross Wintle

    (@magicroundabout)

    Hi Quang,

    Sorry for the delay in getting back to you. I’ve been on holiday.

    Can you post the code that you’re using to create the meta boxes and I’ll take a look.

    Also, did you try to contact me on Facebook too? Just wanted to check it was the same person.

    Thanks

    Ross

    Thread Starter Tri Huynh

    (@quangtri)

    omg… i’m very sorry bother you in holiday. I just think that plugin is abandoned. So i’m try to contact your facebook :D.

    here my code in metaboxes:
    array(‘post_status’ =>’publish’,’date_query’ => array(array(‘after’=> ‘-180 days’,’inclusive’=> true)),’orderby’=>’Date’,’order’=>’DESC’)

    Thank very much for your help.

    Plugin Author Ross Wintle

    (@magicroundabout)

    I’m not on holiday any more. Don’t worry. I’d only reply if I was working on things!

    The only thing I can see with that query is that ‘Date’ has an upper-case ‘D’ at the start and it’s probably case sensitive.

    Having said that, I have been seeing other people have similar problems with date queries lately.

    Can you confirm which version of WordPress you’re using?

    The other thing I might suggest is installing the excellent Query Monitor plugin to see what query is being generated. That may help you work it out too.

    Ross

    Thread Starter Tri Huynh

    (@quangtri)

    I’m using wordpress 4.1.1, i changed Date to date.it still order ASC.

    I installed query monitor. And i don’t see order_by date in query. Maybe i don’t know how to use it.

    Beside, i log your json $result in plugin php file. I saw it change order DESC when i change query. But it still show ASC in layout.

    Plugin Author Ross Wintle

    (@magicroundabout)

    Hi Quang,

    Sorry for the delay – I had some deadlines to meet.

    I’ve found a couple of hours to look into this. It turns out the query is absolutely fine, but the browser is unexpectedly sorting results for me. I wasn’t expecting that!

    I’ve fixed the bug in a local environment and will prepare an update for you soon.

    Thanks for your patience.

    Plugin Author Ross Wintle

    (@magicroundabout)

    Hi again,

    OK, update to version 1.0.3 and this should be resolved. Sorry for the problem and thanks so much for reporting it.

    I’ll set this to resolved but feel free to drop me a line if you’re still having issues.

    Thanks

    Ross

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change show search post order by date desc’ is closed to new replies.