Skip to content
Store post/page pageviews
PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
main.js
pageviews.php

README.md

wp-pageviews

Store post/page pageviews

Markup

<?php if (!is_user_logged_in()){ ?>
  <span id="wp-pageviews" data-postid="<?=get_the_ID()?>"></span> views
<?php } ?>
You can’t perform that action at this time.