Title: Code For Page Views
Last modified: August 19, 2016

---

# Code For Page Views

 *  [Natheist](https://wordpress.org/support/users/natheist/)
 * (@natheist)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/code-for-page-views/)
 * At the moment to display my page views I have the WP.com stats plugin, and I 
   manually type the number that comes out into my footer. Surely there’s a better
   way!
 * If someone knowledgable could tell me how to get my template to automatically
   pull up that number (I’m guessing this has something to do with that “<?php>”
   thing I keep seeing), I would be eternally grateful. I just can’t figure it out.
 * Bonus points if you can help me change the number – I lost 10,000 views when 
   I moved from WP.com to WP.org and I want them back!

The topic ‘Code For Page Views’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Stats](https://wordpress.org/support/topic-tag/stats/)
 * [views](https://wordpress.org/support/topic-tag/views/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Natheist](https://wordpress.org/support/users/natheist/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/code-for-page-views/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
