[转载]wordpress网站信息代码

一、文章总数

<?php
	$count_posts = wp_count_posts();
	echo '文章总数:' . $published_posts = $count_posts->publish;
?>

二、评论总数

<?php
	$numcomms = $wpdb->get_var("SELECT COUNT(*)FROM $wpdb->comments WHERE comment_approved = '1'");
	if(0<$numcomms)
		$numcomms=number_format($numcomms);
	echo "评论总数:".$numcomms;
?>

三、链接总数

<?php
	$link = $wpdb->get_var("SELECT COUNT(*)FROM $wpdb->links WHERE link_visible='Y'");
	if(0<$link)
		echo "链接总数:".$link;
?>

四、页面总数

<?php
	$count_pages = wp_count_posts('page');
	echo '页面总数:' . $pages_posts = $count_pages->publish;
?>

五、分类总数

<?php
	echo '分类总数:' . $count_categories = wp_count_terms('category');
?>

六、标签总数

<?php
	echo '标签总数:' . $count_tags = wp_count_terms('post_tag');
?>

七、查询次数

<?php echo '查询次数:' . get_num_queries(); ?>

八、载入时间

载入时间:<?php timer_stop(1); ?>

九、网站运行时间

<?php echo '运行时间:' . floor((time()-strtotime("2010-10-10"))/86400); ?>

十、最后更新时间

<?php $last = $wpdb->get_results("SELECT MAX(post_modified) AS MAX_m FROM $wpdb->posts WHERE(post_type='post' OR post_type='page') AND (post_status='publish' OR post_status='private')");
	$last = date('Y-n-j',strtotime($last[0]->MAX_m));
	echo "最后更新时间:" . $last;
?>

十一、当前时间

<?php $hourdiff = "8"; //这里的8是根据时区来的,国内主机为8
	$timeadjust = ($hourdiff * 60 *60);
	$melbdate = date("Y-m-d H:i",time() + $timeadjust);
	Print ("当前时间:" . "$melbdate");
?>
更多资讯请关注微信公众号:沐雨听风与狂言疯语(haomaoyys)
本文标签: 
本文链接: http://boliquan.com/wordpress-site-info-code/
版权所有: 玻璃泉, 转载请注明本文出处。
打赏

179 thoughts on “[转载]wordpress网站信息代码

  1. buy phentermine 37 5 online buy phentermine phentermine 37.5 | https://phentermine375rx.com/# – phentermine hcl

  2. “Lallana is set to become the latest player to commit his future to the Reds, following in the same steps as Philippe Coutinho – who agreed a five-year deal last month.” 5m bid for? Anderlechts Senegal centre-back Kara Mbodji rejected. “rts daily LIVE blogRelated StoriesRudy’s Prem returnAston Villa striker Rudy Gestede set for ??6m move to MiddlesbroughTEAM NEWSManchester United vs Middlesbrough team news and predicted line-ups: Henrikh Mkhitaryan startsFANCY A FLUTTERWhat are the latest odds for Manchester United vs Middlesbrough and what time is it onTV TIMESWhat TV channel is showing Manchester United vs Middlesbrough, what time is it on and what are the latest odds PA:Press Association5Aston Villa boss Steve Bruce is also set to launch a bidPA:Press Association5Rudy Gestede has been linked up as Rhodes’ replacementKaranka will now look to seal a ??6m swoop for Villas Rudy Gestede as Rhodes replacement.” vans sk8 hi nintendo His parents came to Paris from Mali in 1980 and Kante grew up just a mile away from the JS Suresnes football ground – very much in his comfort zone. But just hours after her story was published Keys – now presenting football for the beIN Sport. vans slip ons sale india The Eagles have only won two of their last 13 league visits to the Hawthorns (D4 L7). “The Nigerian, 34, joins the League One side?pending international clearance.” vans era navy casual shoes They have always had good front players but he is as good as any on his day. vans shoes stores in the philippines “Another added: Super-light cover structure, smart incorporation of floodlighting and flexibility make it a spectacular masterpiece of engineering.” MANCHESTER UNITED have got a lot to smile about right now. vans era fear of god red vans drawing shoes PA:Press Association4Players are becoming fatigued over the winter break year upon yearAnd in?Octobe.

  3. Jarle Thorsen Swietokrzyskie, Jarle Thorsen Kielce, Jarle Thorsen SiteTalk Reviews, Jarle Thorsen Unaico SiteTalk, Jarle Thorsen Kielce

  4. tramadol generic tramadol hydrochloride tramadol 50mg | https://buytramadolhcl.com/# – tramadol 50 mg

  5. Hi

    I am new to this forum.

    Please excuse my humble question: does anyone know where to buy Storect?

  6. Sorry for off-topic, I’m thinking about creating an instructive site for students. Will possibly begin with posting interesting information just like”More people are afraid of spiders than death. Amazingly, few people are afraid of Champagne corks even though you are more likely to be killed by one than by a spider.”Please let me know if you know where I can find some related info like here

    http://www.arzura.com/online-specialized-coming-up-with-service-plan/

  7. I truly appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again! fgkfgbdkedgbacec

  8. Thank you for another informative website. Where else could I get that kind of info written in such a perfect way? I’ve a project that I am just now working on, and I have been on the look out for such information. adaekafkacak

  9. I really like and appreciate your blog post.Thanks Again. gebcadgkeddf

  10. I really enjoy the blog article.Really looking forward to read more. Fantastic. efffgebecbdk

  11. You’re so interesting! I don’t think I have read anything like this before. So wonderful to discover somebody with some unique thoughts on this subject matter. Seriously.. thank you for starting this up. This website is one thing that is needed on the internet, someone with a bit of originality! efbefcgkdbad

  12. This web site really has all the information and facts I wanted about this subject and didn’t know who to ask. fbagkebcgcebecad

  13. Howdy. Simply just planned to ask a quick problem. Now i’m kdgkfdcddeab

  14. I keep listening to the news update lecture about receiving boundless online grant applications so I have been looking around for the top site to get one. Could you advise me please, where could i acquire some? fdfggdeebfda

  15. I will immediately clutch your rss feed as I can not to find your email subscription link or enewsletter service. Do you have any? Please let me know in order that I may just subscribe. Thanks. fgeffbbaeegd

  16. What’s up Jackson, if you are a new internet user then you have to visit daily this web site and read the updated content at at this place. dbekdbekbdke

  17. I simply desired to thank you very much all over again. I do not know what I might have created in the absence of those methods revealed by you concerning my subject matter. It has been a real challenging matter in my opinion, nevertheless taking a look at the professional strategy you resolved it made me to jump with delight. Now i am grateful for the help and believe you find out what a powerful job that you’re accomplishing training the others all through your webpage. I am certain you’ve never got to know any of us.

  18. Someone essentially help to make significantly posts I might state. This is the first time I frequented your web page and so far? I surprised with the research you made to create this actual submit amazing. Magnificent activity! edddekkakcgeggdd

  19. Hahahahahahaha, this politics related YouTube video is actually so comic, I liked it. Thanks in support of sharing this. faaegadbecee

  20. I discovered your blog web site website on the search engines and check several of your early posts. Always sustain up the very excellent operate. I lately additional increase Rss to my MSN News Reader. Looking for toward reading much far more on your part later on! ddfeeedebdde

  21. A big thank you for your article.Thanks Again. Great. dabdefegegbaeafc

  22. Hmm it looks like your site ate my first comment it was extremely ccdcebgedkdf

  23. It is appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you few interesting things or suggestions. Maybe you can write next articles referring to this article. I wish to read more things about it! gcefabfakbce

  24. I’m also commenting to make you know what a cool experience my friend’s child enjoyed using your site. She came to understand a wide variety of things, including what it is like to possess a very effective giving nature to get most people completely know just exactly several tortuous topics. You really exceeded readers’ desires. Thanks for imparting such warm and helpful, dependable, edifying and in addition cool guidance on that topic to Julie.

  25. I precisely wished to say thanks again. I’m not certain what I could possibly have done without these opinions shown by you over such a field. Completely was a intimidating matter in my circumstances, however , witnessing your well-written form you resolved the issue made me to jump for fulfillment. I am happier for the work and thus have high hopes you really know what an amazing job your are carrying out teaching the others with the aid of a web site. Most probably you have never got to know any of us.

  26. I together with my buddies were looking at the nice suggestions found on your web blog and so suddenly I got a terrible suspicion I never expressed respect to the web blog owner for those secrets. The men are already as a result stimulated to read through them and have now truly been having fun with these things. Appreciation for getting simply helpful and then for considering varieties of beneficial subject matter millions of individuals are really needing to be informed on. My very own honest regret for not expressing appreciation to earlier.

  27. cheers for the actual article i’ve recently been on the lookout with regard to this kind of advice on the net for sum time proper now so numerous thanks ddaededbabeg

  28. Valuable information. Lucky me I found your site by accident, and I am shocked why this accident did not happened earlier! I bookmarked it. adeabkdddbfkfbgb

  29. Wynn documented revenue before last number of quartersit could possibly preserve stagnating, or maybe counterpicking. facbfagdgdde

  30. very nice post, i certainly love this web site, keep on it eeaekbeffkcg

  31. Fckin awesome things here. I am very glad to see your article. Thanks a lot and i’m looking forward to contact you. Will you please drop me a mail? ebkgdagbbkfkbfag

  32. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a bit, but instead of that, this is fantastic blog. A fantastic read. I will definitely be back. kbeceeaeaeea

  33. I keep listening to the news update lecture about receiving boundless online grant applications so I have been looking around for the top site to get one. Could you advise me please, where could i acquire some? bkedkdgkgbfd

  34. You actually explained it really well!

  35. I like to get my inspiration from really meaningful phrases said by truly great people like “There is only one thing a philosopher can be relied upon to do, and that is to contradict other philosophers”, do you know where I can find thematic compiltaions of those?

  36. I like to get my inspiration from really meaningful phrases said by truly great people like “The brave man is he who overcomes not only his enemies but his pleasures”, do you know where I can find thematic compiltaions of those?

  37. I like to get my inspiration from really meaningful phrases said by truly great people like “Is man merely a mistake of God’s? Or God merely a mistake of man’s?”, do you know where I can find thematic compiltaions of those?

  38. You are my inhalation, I have few blogs and sometimes run out from to brand. kdafeebkfakfgfae

  39. Hey! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains. If you know of any please share. Many thanks! kfffadefeece

  40. Howdy. Simply just planned to ask a quick problem. Now i’m cfdfkdfcfdgd

  41. Hey, thanks for the post.Really thank you! Really Cool. daaddafbeebcddge

  42. Excellent blog here! Also your web site loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as quickly as yours lol bgkaceddkdee

  43. Tormoxin 500mg Cod Next Day Delivery in Hartford ddfcdededcca

  44. Someone essentially help to make significantly posts I might state. This is the first time I frequented your web page and so far? I surprised with the research you made to create this actual submit amazing. Magnificent activity! gdbbdbdddddkeekd

  45. Really enjoyed reading ur blog. kbakeddacbbg

  46. Wonderful site. Plenty of useful info here. I’m sending it to a few pals ans additionally sharing in delicious. And naturally, thank you to your sweat! debdakfeeebe

  47. I like to get my inspiration from really meaningful phrases said by truly great people like “Liberty consists in doing what one desires”, do you know where I can find thematic compiltaions of those?

  48. I like to get my inspiration from really meaningful phrases said by truly great people like “The function of prayer is not to influence God, but rather to change the nature of the one who prays”, do you know where I can find thematic compiltaions of those?

  49. I like to get my inspiration from really meaningful phrases said by truly great people like “Things alter for the worse spontaneously, if they be not altered for the better designedly”, do you know where I can find thematic compiltaions of those?

  50. I like to get my inspiration from really meaningful phrases said by truly great people like “Morality is not the doctrine of how we may make ourselves happy, but of how we may make ourselves worthy of happiness”, do you know where I can find thematic compiltaions of those?

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Help

Copyright © 2009-2018 沐雨听风与狂言疯语  | Powered by WordPress  | 网站地图  |  访客留言  | 冀ICP备15004690号  |   | WordPress theme: Kippis 1.15

%d 博主赞过: