Title: How to update post view count programmatically ?
Last modified: November 17, 2019

---

# How to update post view count programmatically ?

 *  [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/how-to-update-post-view-count-programmatically/)
 * I would like to use a function to update the count of my post.
    But in the database,
   there are multiple line of the same ID. Do you already have a function to do 
   that ?
 * Thanks

The topic ‘How to update post view count programmatically ?’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jean R.](https://wordpress.org/support/users/efbi/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/how-to-update-post-view-count-programmatically/)
 * Status: not resolved