开发者

Wordpress orderby date not working

Somehow this doesn't wo开发者_如何学Crk on my server

$query = new WP_Query( array ( 'orderby' => 'date', 'order' => 'DESC' ) );

It works in the local development environment but not live...

How could this be, posts are always sorted oldest to newest instead


Try to replace date with post_date.


Try to Confirm the name of db column is date, or something other like post_date.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜