Title: pageview issue
Last modified: March 13, 2020

---

# pageview issue

 *  Resolved [zalak31](https://wordpress.org/support/users/zalak31/)
 * (@zalak31)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/pageview-issue/)
 * Hello,
 * I want to display a page view using function file. I used a do_action( ‘pageviews’);
   in one add_action but i can not able to print a page views.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Gennady Kovshenin](https://wordpress.org/support/users/soulseekah/)
 * (@soulseekah)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/pageview-issue/#post-12543293)
 * do_action(‘pageviews’) only outputs a placeholder for the views.
    You will need
   to enqueue the scripts and make sure that some crucial JavaScript is running 
   on the page. PageViews relies on this to both increment the counter and display
   it.
 * Have you added add_action( ‘after_setup_theme’, function() {
    add_theme_support(‘
   pageviews’ ); }); to the theme? This will very probably add everything that is
   needed in terms of CSS and JS.
 * [https://github.com/pressjitsu/pageviews#customization](https://github.com/pressjitsu/pageviews#customization)
 *  Thread Starter [zalak31](https://wordpress.org/support/users/zalak31/)
 * (@zalak31)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/pageview-issue/#post-12547108)
 * Hello,
 * Thanks for replay and yes i added
    add_action( ‘after_setup_theme’, function(){
   add_theme_support( ‘pageviews’ ); }); to theme file.
 *  Plugin Author [Gennady Kovshenin](https://wordpress.org/support/users/soulseekah/)
 * (@soulseekah)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/pageview-issue/#post-12547216)
 * Without looking further at your setup it’s impossible to tell.
 * Can you please email [support@pressjitsu.com](https://wordpress.org/support/topic/pageview-issue/support@pressjitsu.com?output_format=md)
   with further details?
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘pageview issue’ is closed to new replies.

 * ![](https://ps.w.org/pageviews/assets/icon-256x256.png?rev=1451114)
 * [Pageviews](https://wordpress.org/plugins/pageviews/)
 * [Support Threads](https://wordpress.org/support/plugin/pageviews/)
 * [Active Topics](https://wordpress.org/support/plugin/pageviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pageviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pageviews/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gennady Kovshenin](https://wordpress.org/support/users/soulseekah/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/pageview-issue/#post-12547216)
 * Status: resolved