[wordpress插件] AJAX Hits Counter + Popular Posts WidgetAJAX Hits Counter + Popular Posts小部件

wordpress 插件 文章 2020-02-13 18:00 532 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Counts page/posts hits via AJAX.

通过AJAX计算页面/帖子的点击数。

Ideal for nginx whole-page-caching or caching plugins.

Nginx全页缓存或缓存插件的理想选择。

For plugin’s work you DON’T need any javascript-framework (jQuery, MooTools, etc.)

对于插件的工作,您不需要任何javascript框架(jQuery,MooTools等)

Popular Posts Widget included.

包含热门帖子小部件。

You can fully customize displaying of widget by using predefined placeholders, such as {post_id}, {post_title}, {post_title_N},

您可以使用预定义的占位符(例如 {post_id} {post_title} {post_title_N}

{post_excerpt_N}, {post_author}, {post_author_link}, {permalink}, {post_date}

{post_excerpt_N} {post_author} {post_author_link} {permalink} {post_date}

, {thumbnail-[medium|...|64x64]}, {post_categories}, {post_hits} and

{thumbnail- [medium | ... | 64x64]} {post_categories} {post_hits}

>{post_comments_count}.

> {post_comments_count}

Also you can show hits count in Posts/Pages Loop.

您还可以在“帖子/页面循环”中显示点击数。

Simply add this line:

只需添加以下行:

or equivalent

或同等

Or you can use shortcode [hits].

或者您可以使用简码 [hits]

You can use callback function for “success” (ajaxHitsCounterSuccessCallback(xhr)) or “failed” (ajaxHitsCounterFailedCallback(xhr)) result status of increment hits script.<

您可以将回调函数用于增量匹配脚本的“成功”( ajaxHitsCounterSuccessCallback(xhr))或“失败”( ajaxHitsCounterFailedCallback(xhr))结果状态。

/p>

/ p>

安装步骤

    1. Upload ajax-hits-counter directory to the /wp-content/plugins/ directory
    2. ajax-hits-counter 目录上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the “Plugins” menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. You can enable “Popular Posts Widget” in Widgets Management
    6. 您可以在“小部件管理”中启用“热门帖子小部件”

    7. If you want to show hits count in Loop — add this line:

    8. 如果要在循环中显示点击计数,请添加以下行: <?php echo(ajax_hits_counter_get_hits(get_the_ID()));

      ?> or equivalent

    9. ?> 或等效的 <?= ajax_hits_counter_get_hits(get_the_ID())?>

下载地址

https://downloads.wordpress.org/plugin/ajax-hits-counter.0.9.10.zip

https://downloads.wordpress.org/plugin/ajax-hits-counter.0.9.10.zip

-EOF-

AI助手支持GPT4.0