Linux 软件免费装
Banner图

Disqus Popular Posts

开发者 godthor
更新时间 2018年2月6日 04:59
PHP版本: 3.0.1 及以上
WordPress版本: 4.9.2
版权: GPLv2 or later
版权网址: 版权信息

标签

widget posts comments shortcode disqus

下载

1.0.0 1.0.1 1.0.11 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.4.0 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1.0 2.1.1

详情介绍:

This will create a new widget which will display your most popular posts and pages based on comment count with Disqus. Alternatively, you can use a shortcode as well. It's very simple to use. Just drag the widget into a sidebar and configure it, or visit the settings under the WordPress Settings menu. Just Some of the Options: Note: This plugin requires you have an application registered with Disqus: https://disqus.com/api/applications/ It's free and simple to setup, just follow that link.

安装:

  1. Upload dpp.php to the /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Place the Disqus Popular Posts widget into a sidebar.
  4. Configure the widget. This requires you have an application registered with Disqus: https://disqus.com/api/applications/

屏幕截图:

  • An example of the widget being shown on the site.

升级注意事项:

2.1.1 Added a new field. 2.1.0 Addresses a potential problem on some web hosts where you can't get posts to load. 2.0.5 Bug fix for saved results and how many show. 2.0.4 Code cleanup to remove warnings apppearing with WP_DEBUG turned on. 2.0.3 Code documentation and WordPress 4.4.2 validation. 2.0.2 Bug fix for clearing saved results. 2.0.1 Bug fixes for the widget and minor updates. 2.0.0 Introduces a new shortcode ability!

常见问题:

Why are no posts showing up?

  1. Verify you have entered the correct Disqus API Key and Disqus Shortname.
  2. Take a look at the setting under Posts for Count Over How Many Days. If you have that set to a low value then try increasing it. What will happen is if you have that set to something like 1 day but you didn't have any comments during that time then you will have no results and nothing will show. The same is true if you are saving results and notice the last update was a long time ago. If it has nothing new in that time period then it will not update.

I have results set to save and update every X hours but it's not updating.

Follow the steps in the above question, Why are no posts showing up?

How do I adjust the look of the results beyond the options available in the widget?

Each element within the results has its own class. You can edit your theme's CSS and put in entries for the classes used in the results.

  • Article Container Class = dpp_result (div that holds all the below items)
  • Featured Image Class = dpp_featured_image
  • Post Title Class = dpp_post_title
  • Article Date Class = dpp_post_date
  • Article Comments Class = dpp_comments
Because the widget creates a style entry on the div tags, you may need to use the !important flag on your CSS entries to override any margins you may be setting.

更新日志:

2.1.1 Released: September 25th, 2017 2.1.0 Released: August 23rd, 2016 2.0.5 Released: July 29th, 2016 2.0.4 Released: February 23rd, 2016 2.0.3 Released: February 4th, 2016 2.0.2 Released: September 14th, 2015 2.0.1 Released: June 16th, 2015 2.0.0 Released: May 8th, 2015 Note: After upgrading go to Posts->Count Over How Many Days and set that value. By default it will use 90 days if you don't set this. 1.7.0 Released: April 16th, 2015 1.6.3 Released: March 20th, 2015 A big thanks to icstee for helping me with fixing the bugs. 1.6.2 Released: March 19th, 2015 1.6.1 Released: March 19th, 2015 1.6.0 Released: March 19th, 2015 1.5.1 Released: March 9th, 2015 1.5.0 Released: March 9th, 2015 1.4.0 Released: March 7th, 2015 1.3.0 Released: February 23rd, 2015 1.2.4 Released: February 19th, 2015 1.2.3 Released: February 3rd, 2015 1.2.2 Released: January 25th, 2015 1.2.1 Released: January 25th, 2015 1.2.0 Released: December 30th, 2014 1.1.1 Released: December 29th, 2014 1.1.0 Released: December 29th, 2014 1.0.11 Released: December 23rd, 2014 1.0.1 Released: December 23rd, 2014 1.0.0 Released: December 23rd, 2014