[WordPress] 外掛分享: Post Views for WP

前言介紹

  • 這款 WordPress 外掛「Post Views for WP」是 2021-01-19 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2021-02-25,距離現在已有 1827 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

merajali294 |

外掛標籤

PageCount | PostCount | postviews |

內容簡介

Post Views for WP 可以讓你揭示一篇文章或頁面被觀看的次數。使用這個外掛很容易,只需要一個步驟就可以啟用。

功能包括:

您可以選擇要為哪些文章或頁面計算和顯示觀看次數。
設置/重置計數間隔的選項
通過 IP 排除用戶
根據您的要求自動或手動使用短代碼顯示文章觀看次數
支持短代碼,只需複製/粘貼 [post_viewsfwp] 即可

如何使用?

一個步驟的設置就可以使用了,只需進入 WP-Admin -> 設置 -> PostViews for WP 進行配置即可。
只需在列出的選項中啟用 Post/Page Views,即可啟用。
或者,您可以使用以下功能直接顯示:
打開路徑 wp-content/themes/<YOUR ACTIVE THEME NAME>/index.php
以下代碼可以在許多地方使用,例如在 post.php、page.php、single.php、archive.php 中,也可以按照您的要求使用。
搜索:<?php while (have_posts()) : the_post(); ?>
找到後,在它下面的任何位置添加:if(function_exists(‘post_views_for_wp_above_the_content’)) {
post_views_for_wp_above_the_content($postID);}。

原文外掛簡介

Post Views for WP will allow you to unveil how many number of times a post or page had been viewed. It is quite easy to use as it has only one step to Set it up and running.
Features include:

You can Opt the post types for which post or page views will be counted and displayed.
Option to set/reset counts interval
Excluding users by IPs
Post views display conditions such as automatic or manual via shortcode as per your requirement
Shortcode Support added, simply copy/paste [post_viewsfwp] as per requirement

How to Use?

One Step Setup to get up and running, Just Go to WP-Admin -> Settings -> PostViews for WP to configure the plugin.
Simply enable wherever you want to enable Post/Page Views from the listed options, that’s it!
Or you can use the function below to directly echo/display it.
Open the path wp-content/themes//index.php
The following Code can be used in many places such as in post.php, page.php, single.php, archive.php as well as per your requirement.
Search for:
Once found, Add if(function_exists(‘post_views_for_wp_above_the_content’)) {
post_views_for_wp_above_the_content($postID);} anywhere Below It (Your concerned position).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Post Views for WP」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.0.1 | 1.0.2 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Post Controller 》綜合文章解決方案,一處獲得多種功能, 功能, , 文章篩選:透過不同自訂選項,例如作者、標籤、日期範圍等篩選文章, 文章複製:可以將文章複製成新文章, 文章...。

文章
Filter
Mastodon