Title: Doesn’t count
Last modified: October 16, 2022

---

# Doesn’t count

 *  [turansaim](https://wordpress.org/support/users/turansaim/)
 * (@turansaim)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-count-2/)
 * Hi thank you for this great plugin. I don’t know what happened it stopped counting
   the post views. Can you please help me?
    -  This topic was modified 3 years, 7 months ago by [turansaim](https://wordpress.org/support/users/turansaim/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoesnt-count-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Pavan Kumar](https://wordpress.org/support/users/southindianjobs1/)
 * (@southindianjobs1)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-count-2/#post-16104884)
 * I am facing the same problem too. The screen options in the dashboard do not 
   show the post-view plugin option. All the previous post counts on the dashboard
   are not visible.
 * Reference [Image](https://ibb.co/sJtfYbV)
    -  This reply was modified 3 years, 7 months ago by [Pavan Kumar](https://wordpress.org/support/users/southindianjobs1/).
 *  [michaelakub](https://wordpress.org/support/users/mikaelakub/)
 * (@mikaelakub)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/doesnt-count-2/#post-16313266)
 * I have same problem. I have archive page where is all posts and I see 0 to every
   post but when I open post I see views. here is url: [https://www.skystory.sk/aktuality/](https://www.skystory.sk/aktuality/)
 *  [Vladislav Abrashev](https://wordpress.org/support/users/vabrashev/)
 * (@vabrashev)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/doesnt-count-2/#post-16315512)
 * If you are using a shortcode, the temporary workaround would be to use the **
   pvc_post_views_html** filter like this:
 *     ```wp-block-code
       add_filter( 'pvc_post_views_html', 'custom_pvc_post_views_html', 10, 5 );
       /**
        * It replaces the number of views in the Post Views Counter plugin with the number of views in the
        * Post Views plugin
        * 
        * @param html The HTML to be filtered.
        * 
        * @return the html.
        */
       function custom_pvc_post_views_html( $html ) {
       	if ( ! function_exists( 'pvc_get_post_views' ) ) {
       		return $html;
       	}
   
       	$views = pvc_get_post_views();
   
       	$html = preg_replace( '/<span class="post-views-count">(.*?)<\/span>/', '<span class="post-views-count">' . $views . '</span>', $html );
   
       	return $html;
       }
       ```
   
 * The alternative option would be to use the **pvc_get_post_views()** function 
   instead of **do_shortcode()** and pass a post ID to it.

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

The topic ‘Doesn’t count’ is closed to new replies.

 * ![](https://ps.w.org/post-views-counter/assets/icon-256x256.png?rev=2973820)
 * [Post Views Counter](https://wordpress.org/plugins/post-views-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-views-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-views-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/post-views-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-views-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-views-counter/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Vladislav Abrashev](https://wordpress.org/support/users/vabrashev/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/doesnt-count-2/#post-16315512)
 * Status: not resolved