怎样实现WordPress文章按发布时间倒序列表显示-WordPress主题

摘要:由于站点行业不同及站点内容的特殊性,比如小说类的wordpress主题,或是说明类的wordpress主题,我们可能需要…

由于站点行业不同及站点内容的特殊性,比如小说类的wordpress主题,或是说明类的wordpress主题,我们可能需要文章按倒序排列才符合用户的浏览习惯,那我们如何来操作呢?其实方法很简单,只要把我们默认的列表循环代码做一个小的调整就可以实现

默认的循环代码如下:

上面这段代码包括了循环代码的开始和循环代码的结束,将原来的默认循环代码替换掉。下面是默认的循环代码:

来源:http://www.wazhuti.com/3454.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_12758.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?