[wordpress插件] Disqus Popular Threads WidgetDisqus流行线程小部件

wordpress 插件 文章 2020-04-19 20:30 0 162 全屏看文
评分
60
描述

Integrates with the Disqus API to show your most popular threads (most commented posts).

与Disqus API集成以显示您最受欢迎的主题(评论最多的帖子)。

Can be added via sidebar widget, template tag, or shortcode.

可以通过边栏小部件,模板标记或简码添加。

For more information or to request additional features, please

有关更多信息或要求其他功能,请

visit the plugin page

访问插件页面

安装步骤

    1. Upload the plugin to your ‘wp-content/plugins’ directory, or download and install automatically through your admin panel.

      将插件上传到您的“ wp-content / plugins”目录,或通过管理面板自动下载并安装。

    2. Activate the plugin through the ‘Plugins’ menu in WordPress.

      通过WordPress中的“插件”菜单激活插件。

    3. Visit the plugin admin page via Settings -> Disqus Settings

      通过设置-> Disqus设置访问插件管理页面

    4. You’ll need to add your Disqus Public API Key, Forum ID (Disqus Site Shortname), and Domain Info.

      您需要添加自己的Disqus公有API密钥,论坛ID(Disqus网站简称)和域信息。

      For information on obtaining your Disqus API Key, visit the plugin homepage

      有关获取您的Disqus API密钥的信息,请访问插件首页

      >.

      >。

    To Display Disqus Popular Threads Via WordPress Widget

    通过WordPress小部件显示Disqus热门话题

    From your admin console, go to Appeareance > Widgets, drag the Disqus Popular Threads Widget to wherever you want it to be and click on Save.

    在管理控制台中,转到“ Appeareance”>“小部件”,将“ Disqus Popular Threads”小部件拖到您想要的位置,然后单击“保存”。

    To Display Disqus Popular Threads Via Shortcode

    通过短码显示Disqus热门话题

    [wdp_threads days_back = '7d' show_threads = 5 ]

      [wdp_threads days_back ='7d'show_threads = 5]

    To Display Disqus Popular Threads Via Template Tag

    通过模板标签显示Disqus热门话题

      <?php wdp_get_threads($ days_back ='7d',$ show_threads = 5,$ echo = true); 

    ?>

    ?>

    Parameters

    参数

      1. Days Back – ‘1h’, ‘6h’, ’12h’, ‘1d’, ‘3d’, ‘7d’, ’30d’, ’90d’

        往日回头–“ 1h”,“ 6h”,“ 12h”,“ 1d”,“ 3d”,“ 7d”,“ 30d”,“ 90d”

      2. Number of Threads – # of posts to return

        线程数–返回的帖子数

下载地址
https://downloads.wordpress.org/plugin/disqus-popular-threads-widget.zip
-EOF-