wordpress文章列表怎样排列前面123的循环数字序列-WordPress主题

摘要:很多的网站侧边栏或量CMS网站的模块内的文章标题列表都是通过数据序列来排列的,那如何在wordpress主题中实现文章列…

很多的网站侧边栏或量CMS网站的模块内的文章标题列表都是通过数据序列来排列的,那如何在wordpress主题中实现文章列表前面的123数字循环序列呢,其实很简单,只要应用到下面的代码就可以实现一个简单的从1开始的数字序列了。

注意:如果$i=0侧表示从0开始循环,如果$i=1表示从1开始循环,设置$i的值就是从哪个值开始循环数字序列。

来源:http://www.wazhuti.com/2078.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_13237.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?