Code Monkey home page Code Monkey logo

wp-post-views's Introduction

Deploy

wp-post-views

use Docker To use this Plugin setup. (Not Compulasory)

   $ git clone https://github.com/vanpariyar/wp-post-views.git
   $ cd wp-post-views
   $ docker-compose up -d

Goto : localhost:8080/

Live URL: https://wordpress.org/plugins/wp-post-views/

This is the simple plugin that counts the views of the your wordpress website and store the views in the database

For this repository i would like to give full credits to AnkitaTanti.

Contribution is highly appriciated.

Contribution needed below

  • Dynamic Block for the post views for gutenberg
  • Language Translations

banner-wp-post-views

For contribution make the saperate branch.

NOTE : Make sure we are Developing the Plugin.:sweat_smile: Please Don't upload Whole wordpress setup.

Features:

  • We have option to show views count in the post coloumn.
  • (You can disable this)All views are filterd with IP address. To just make sure get right count -Support for the Custom post type by selecting menually in settings.

INSTALLATION :

  1. Upload the plugin in to your wp-content > Plugins folder
  2. You can change plugin settings in Admin panel > Settings > Wp Post View Settings
  3. There are some options are by default selected for you but you can Change it.

That's it Thanks.

wp-post-views's People

Contributors

kajalmultidots avatar piyushmultidots avatar ronak-multidots avatar vanpariyar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

wp-post-views's Issues

Error Undefined array key “views”

Hello, can you give me a hand? I’ve noticed your plugin is causing these errors in my PHP log:

[20-Aug-2021 14:56:48 UTC] PHP Warning: Undefined array key “views” in /home/showmetechcom/public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 805
[20-Aug-2021 14:56:48 UTC] PHP Warning: Trying to access array offset on value of type null in /home/showmetechcom/public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 805
[20-Aug-2021 14:58:00 UTC] PHP Warning: Undefined array key “views” in /home/showmetechcom/public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 805
[20-Aug-2021 14:58:00 UTC] PHP Warning: Trying to access array offset on value of type null in /home/showmetechcom/public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 805`

They end up flooding the logs, with more than 600 entries, only today.

Can you help me fix it?

Kind regards.

Plugin improvements

Hi, thanks for this nice plugin. It is very lightweight, perfect for my needs. You have done a great job but I think it can be improved…

For example you can save in the post meta 2 fields, one for unique visitors (by IP) and one for total visits. This way we can extract this data for each post via the get_post_meta function (I need these 2 values for my project).

Another very important thing that other developers are implementing is the exclusion of bots from the visit count. I think you should implement this option as well. Anyway thanks for your job and keep up the good work.

Clear cache views on single page

Hi There,

Is there a way to clear the views from a page? Because when i duplicate an page, the page views are also duplicated with it. But for the new page i would like to set the counter to zero.

Please help

Fatal error: Uncaught Error: Call to undefined function validate_ip()

What is causing this error?

Fatal error: Uncaught Error: Call to undefined function validate_ip() in /xxx/xxx/xxx//staging/wp-content/plugins/wp-post-views/wp-post-views.php:99

Stack trace: #0 /xxx/xxx/xxx//staging/wp-content/plugins/wp-post-views/wp-post-views.php(135): WP_Post_Views->get_ip_address()
#1 /xxx/xxx/xxx//staging/wp-includes/class-wp-hook.php(303): WP_Post_Views->counter(”)
#2 /xxx/xxx/xxx//staging/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#3 /xxx/xxx/xxx//staging/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /xxx/xxx/xxx//staging/wp-includes/general-template.php(3015): do_action(‘wp_head’)
#5 /xxx/xxx/xxx//staging/wp-content/themes/hello-elementor-child/header.php(23): wp_head()
#6 /xxx/xxx/xxx//staging/wp-includes/template.php(770): require_once(‘/home2/patialat…’)
#7 /home2/patialat/p in /xxx/xxx/xxx//staging/wp-content/plugins/wp-post-views/wp-post-views.php on line 99

Server architecture Linux 4.19.150-76.ELK.el7.x86_64 x86_64
Web server Apache
PHP version 7.4.22 (Supports 64bit values)

How to translate the output of counter ?

Thanks for this awesome and simple plugin. I want to translate/str_replace of the output of the counter. How can I do that ? For example, I want to replace “198” with “१९८”. (Latin to Devanagari)

Can we reset counter ?

Hi there !
Thanks for your work. it's just perfect for my use.
Could you tell me if counter coul'd be reset (All counter or maybe by post)? and how i can reset it ?
Could you add this function to your work ?
Thanks

Dude, I like your plugin Wp Post Views, please update it.

Hello. I have tried more than 20 similar plugins, and your plugin turned out to be the best. However, the checkbox with the "Ignore the site administrator" setting is very lacking.
And also, as I understand it, the plugin takes into account visits, taking into account updates once a day. I would like it not to take into account the visit of the same person in a day or a week.
And finally, I would like to have another additional shortcode with the output of the number of visits for today as well.
Thank you for the great plugin and support!

Limit the period

For what period are page views displayed?

Is it possible to set the period for which views are displayed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.