• I don’t know if it’s necessary, but I want to try. I found a code like this where I can show the number of page views/reads without a plugin. But I am not sure. I wanted to consult. Is useful? Does it cause problems? Do you have any other advice?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Halil ESEN

    (@halilesen)

    maybe it will be a nice feature to use in future updates. It can appear in the author-date section under the article titles.

    Theme Author Ben Sibley

    (@bensibley)

    I think it’s an interesting script. It’s written as a plugin, but you could copy the PHP into a code snippet or child theme’s functions.php file.

    It doesn’t look like it outputs the pageview number anywhere on the page, but since it saves it to the post meta you could output it anywhere you want on the post page like this:

    <?php echo get_post_meta(get_the_ID(), '_spp_count'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pageviews’ is closed to new replies.