WPS Visitor Counter Shortcode

Below, you’ll find a detailed guide on how to add the WPS Visitor Counter Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the WPS Visitor Counter Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the WPS Visitor Counter Plugin and the shortcodes it provides:

Plugin Icon
WPS Visitor Counter Plugin

"WPS Visitor Counter Plugin is a dynamic WordPress tool that keeps tabs on your website's traffic, offering insightful data on visitor count in a user-friendly interface."

★★★☆✩ (8) Active Installs: 20000+ Tested with: 5.7.10 PHP Version: false
Included Shortcodes:
  • [wps_visitor_counter]

WPS Visitor Counter [wps_visitor_counter] Shortcode

The WPS Visitor Counter shortcode is used to display visitor statistics on a WordPress site. It retrieves and displays data like total views, users today, yesterday, last 7 days, this month, this year, and total users. It also shows views today, yesterday, last 7 days, this month, this year, total views, and current online users. Additionally, it displays the user’s IP address and server time.

Shortcode: [wps_visitor_counter]

Examples and Usage

Basic example – Displaying the visitor counter on your website

[wps_visitor_counter]

PHP Function Code

In case you have difficulties debugging what causing issues with [wps_visitor_counter] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'wps_visitor_counter', 'wps_add_visitor_counter' );

Shortcode PHP function:

Code file location:

wps-visitor-counter/wps-visitor-counter/wps-visitor-counter.php

Conclusion

Now that you’ve learned how to embed the WPS Visitor Counter Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *