Title: Integration in Theme (php code)
Last modified: August 30, 2016

---

# Integration in Theme (php code)

 *  [vadim-v](https://wordpress.org/support/users/vadim-v/)
 * (@vadim-v)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/)
 * Hi!
    My counter is displayed at the bottom of the page. And I want to show where
   needed. Tell me how to disable is not output from the bottom?
 * And how to display it where I need it?
    What php code I need to insert? And JavaScript(
   for plugin cache)
 * Thanks!
 * [https://wordpress.org/plugins/post-views-counter/](https://wordpress.org/plugins/post-views-counter/)

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

 *  [gregy1403](https://wordpress.org/support/users/gregy1403/)
 * (@gregy1403)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291501)
 * another one here 🙂
 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291503)
 * Hi,
 * Of course there is:
 * `pvc_post_views()`
 * or with passing a post id parameter
 * `pvc_post_views( $post->ID )`
 * or just get the views without any output:
 * `pvc_get_post_views( $post_id )`
 * Regards,
    Bartosz / dfactory
 *  [gregy1403](https://wordpress.org/support/users/gregy1403/)
 * (@gregy1403)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291505)
 * kindly thank you
 *  Thread Starter [vadim-v](https://wordpress.org/support/users/vadim-v/)
 * (@vadim-v)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291506)
 * Please add the admin panel to disable the ability to display standard counter
   in the usual place.
 * How to show the counter you have written, and how to disable by default?
 * Thanks!
 *  Anonymous User 12851872
 * (@anonymized-12851872)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291546)
 * hi,
 * thank you with the code in template, it’s good
    `<p class="post-views">Views :
   <?php echo pvc_get_post_views( $post->ID ) ?></p>`
 *  [Jody Mitoma](https://wordpress.org/support/users/jody-mitoma/)
 * (@jody-mitoma)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291547)
 * Ouu, thank you so much for this code:
 * `<?php echo pvc_get_post_views( $post->ID ) ?>`
 * The SHORTCODE would put a line break before AND after it, so it was entirely 
   useless, however the code above doesn’t put a line break anywhere. Yay!!
 * Looking good: [https://www.soyeg.club/concerns-donald-trump-will-end-this-world-if-elected/](https://www.soyeg.club/concerns-donald-trump-will-end-this-world-if-elected/)
   🙂

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

The topic ‘Integration in Theme (php code)’ 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/)

 * 6 replies
 * 5 participants
 * Last reply from: [Jody Mitoma](https://wordpress.org/support/users/jody-mitoma/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/integration-in-theme-php-code/#post-6291547)
 * Status: not resolved