Title: View variable
Last modified: August 21, 2016

---

# View variable

 *  [AWN](https://wordpress.org/support/users/wakilnikzad/)
 * (@wakilnikzad)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/view-variable/)
 * Hello and thank you for this great plugin!
    My theme has a default counter which
   is not accurate and I want to replace it by this plugin. I found the code in 
   my theme as follow:
 *     ```
       $output = '<span class="fa fa-eye"></span><span class="c5-views">' . $this->custom_number_format($count) . '</span>';
               return $output;
           }
       ```
   
 * I believe the counter is this portion:
    `$this->custom_number_format($count)`
   But when I replace it by: `get_post_meta( $post->ID, 'jetpack-post-views', true)`
   It doesn’t print anything. Your help is highly appreciated!
 * [https://wordpress.org/plugins/jetpack-post-views/](https://wordpress.org/plugins/jetpack-post-views/)

The topic ‘View variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jetpack-post-views_b1c8ce.svg)
 * [Jetpack Post Views](https://wordpress.org/plugins/jetpack-post-views/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack-post-views/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack-post-views/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack-post-views/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack-post-views/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack-post-views/reviews/)

## Tags

 * [single post view](https://wordpress.org/support/topic-tag/single-post-view/)

 * 0 replies
 * 1 participant
 * Last reply from: [AWN](https://wordpress.org/support/users/wakilnikzad/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/view-variable/)
 * Status: not resolved