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. 将三个文件上传,刷新页面就是见证奇迹的时刻

wordpress 3.4.2 文章 阅读次数统计的实现》上有33条评论

  1. grosir baju bayi

    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. Perlengkapan Bayi Murah

    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. baju bayi

    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. baju bayi

    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. baju bayi

    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. baju bayi

    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. baju bayi

    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. baju bayi

    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 :)

    回复
  9. baju bayi

    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

    回复
  10. baju bayi

    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

    回复
  11. Baju Bayi

    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

    回复
  12. baju bayi

    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

    回复
  13. baju baju bayi

    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

    回复
  14. Baju Bayi

    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

    回复
  15. Bandana Anak Bayi

    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

    回复
  16. Bandana Anak Bayi

    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

    回复
  17. invest liberty reserve

    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!

    回复
  18. invest liberty reserve

    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!

    回复
  19. invest liberty reserve

    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!

    回复
  20. liberty reserve

    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!

    回复
  21. liberty reserve

    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!

    回复
  22. Thijn Witt

    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.

    回复

发表评论

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.