How to install and set up the wordpress pageview plugin (wp-postview)?

How to install and set up the wordpress pageview plugin (wp-postview)?

As a webmaster, what I care most about is how many readers my articles are and which articles are popular among visitors. However, as a newbie, how to set this up is a headache. The editor also went through this step by step, and today I will share with you how to set up and install the browsing number plug-in.

1. Installation of wp-postview

WP-Postviews is very easy to install. Just search for: WP-Postviews in the WP backend plug-in column and you can install it directly. After installation, enable it and you can start collecting statistics.

2. Calling WP-Postviews

If you want your website to display the number of page views on the page, you need to modify your current theme and insert the following code where you need to call the number of page views in the page source code:

<?php if(function_exists('the_views')) { the_views(); } ?>
Then the number of article views can be displayed on the front end.
However, there is a problem. The default unit of the wp-postview plugin page views is Views, which is not in line with Chinese habits. It is recommended to change Views to Chinese. How to modify it?

Click settings (right click) and wp-postview will appear. Open it, find the Views Template column, delete VIEWS in %VIEW_COUNT% VIEWS or change it to Chinese characters, then save it.

If you need information from the editor, you can add the editor's QQ: 1413889027

<<:  How to set up the breadcrumb navigation in WordPress? How to create a breadcrumb navigation?

>>:  There are several plugins that must be installed for wordpress, and WP plugins that must be installed to build a website.

Recommend

Introduction to Huawei App Market paid promotion service!

1. Introduction to paid promotion business Relyin...

How to do data analysis well? There are 5 key links!

In the era of big data and mobile Internet , ever...

HTML6: Are you just going to abandon JavaScript?

There is an uproar in the front-end development c...

Do you believe that hypnosis can work wonders?

Hypnotic suggestion can lead to unusually profoun...

To B trend, how to attract customers through content?

01 Definition 1.1 Definition of tool-type SaaS pr...