wordpress 3.4.2 文章 阅读次数统计的实现

 这是一个旧话题,但是今天真是把我恶心死了

按照网上的教程,用了一个东西:
WP-PostViews Plus  和   BAW Post Views Count
后来证明这两个类似功能的插件是可以和谐共处的,安装方法,在 插件-》安装插件里面直接搜索自动安装就行
前者用于页面的访问数量的展示,后者用户用于管理员查看文章访问数量
那么我接下来介绍的两个功能是,显示最热门的文章(边栏),给每篇文章显示阅读数量
1. 显示最热门的文章
在 外观-》小工具 里面,把 “浏览数排行榜”拖到主边栏里就可以了
2. 给每篇文章显示阅读数量
网上现在的方法真是能让人不知所云,比如这篇文章
《wordpress统计浏览次数》
《如何添加WordPress的文章浏览次数》
方法如下, 以twentyeleven 这个theme 为例:
1. 复制代码   <?php if(function_exists(‘the_views’)) { the_views(); } ?>, 简称xxx
2. 在/wp-content/themes/twentyeleven/
文件夹下面下载:
index.php  content.php   content-single.php
3. 在 index.php 开头添加  xxx ,保存,UTF8格式,xxx见步骤1
4. 在 content.php 中 搜索 title
<h1><?php the_title(); ?></h1>
之后添加 xxx,保存
这样就是能在摘要页面显示浏览次数
5. 在  content-single.php中 搜索 title
 <h1>…….<?php the_title(); ?></a></h1>
后面添加 xxx, 保存
6. 将三个文件上传,刷新页面就是见证奇迹的时刻

这篇文章有 33 个评论

  1. Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is great, let alone the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  2. Wow, fantastic blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is wonderful, let alone the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  3. Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is fantastic, let alone the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  4. Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is wonderful, let alone the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  5. Wow, awesome blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is magnificent, as well as the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  6. Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is wonderful, let alone the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  7. Wow, wonderful blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is great, let alone the content!. Thanks For Your article about wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen .

  8. Thanks erst solon for distribution this online. I sure idolised every bit of it.

  9. Thanks like your wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen

  10. Thanks like your wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen

  11. Thanks like your wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen

  12. Thanks like your wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen

  13. Thanks like your wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen

  14. Extraordinary weblog here! Also your blog loads up rapidly! What web entertainer are you using? Can I get your affiliate hyperlink to your web innkeeper? I require my personalized websites undischarged up as swift as yours :)

  15. Eager weblog here! Also your journal loads up speedily! What web computer are you using? Can I get your affiliate hyperlink to your web patron? I requisite my individualised websites live up as sudden as yours :)

  16. I think this is among the most vital information for me. And i am glad reading your article. But should remark on few general things, The website style is great, the articles is really excellent : D. Good job, cheers

  17. I think this is one of the most vital information for me. And i’m glad reading your article. But wanna remark on some general things, The website style is great, the articles is really excellent : D. Good job, cheers

  18. I think this is among the most vital info for me. And i am glad reading your article. But want to remark on few general things, The site style is wonderful, the articles is really excellent : D. Good job, cheers

  19. I think this is one of the most significant information for me. And i am glad reading your article. But wanna remark on some general things, The web site style is ideal, the articles is really nice : D. Good job, cheers

  20. I think this is among the most significant info for me. And i am glad reading your article. But want to remark on some general things, The web site style is wonderful, the articles is really great : D. Good job, cheers

  21. I think this is one of the most significant information for me. And i am glad reading your article. But wanna remark on some general things, The site style is perfect, the articles is really excellent : D. Good job, cheers

  22. I think this is among the most important info for me. And i am glad reading your article. But want to remark on some general things, The website style is wonderful, the articles is really great : D. Good job, cheers

  23. I think this is one of the most significant information for me. And i am glad reading your article. But should remark on some general things, The website style is great, the articles is really nice : D. Good job, cheers

  24. This is the penalise wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen diary for anyone who wants to move out out active this theme. You observation so more its most wearing to argue with you (not that I really would want…HaHa). You definitely put a new revolve on a subject thats been scrivened roughly for geezerhood. Pleasant choke, simply major!

  25. This is the penalise wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen blog for anyone who wants to assay out out near this content. You request so overmuch its almost wearying to present with you (not that I truly would want…HaHa). You definitely put a new gyrate on a issue thats been handwritten some for period. City poppycock, only uppercase!

  26. This is the turn wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen journal for anyone who wants to act out out around this issue. You notice so often its almost effortful to argue with you (not that I truly would want…HaHa). You definitely put a new rotation on a matter thats been graphic around for geezerhood. City force, just majuscule!

  27. This is the exact wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen diary for anyone who wants to act out out nearly this substance. You remark so such its near wearing to argue with you (not that I really would want…HaHa). You definitely put a new protract on a matter thats been longhand roughly for life. City hooey, but large!

  28. Why not port the scanner towards the world wide web and City Hall so they will know when you come house as nicely when and in which you experience. Sooner or later…

  29. I wouldn’t miss your sale. It really is just the top! I get pleasure from the farm setting as well….wouldn’t be precisely the same located somewhere else. See you in October! Sharon

  30. This is the right wordpress 3.4.2 文章 阅读次数统计的实现 | ClarkChen journal for anyone who wants to act out out about this topic. You attending so often its nigh tiring to present with you (not that I rattling would want…HaHa). You definitely put a new reel on a theme thats been codified about for age. Good squeeze, but extraordinary!

  31. If you are seeking to add more fruits and veggies in your diet, look at trying fruit juices. This may be a excellent, time conserving remedy for individuals that don’t get the time and energy to get ready unprocessed vegetables and fruit. Buy Male Extra Juice is very hassle-free, when you don’t have to do a lot of preparation just have it from the juicer. You should utilize a straw when enjoying juice because it can cause dental cavities.

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

关闭菜单