All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: counter resets to zero when editing post  (Read 332 times)

0 Members and 1 Guest are viewing this topic.

Offline k_elghafri

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: estrogenat
counter resets to zero when editing post
« on: 06 January 2010, 18:46 »
Hi there,
I use ViewPost 1.5 and since upgrading to WP 2.9 I have a tricky problem. Whenever I edit or update a post, the view counter for that post resets to zero again.

What can I do???

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,534
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: counter resets to zero when editing post
« Reply #1 on: 06 January 2010, 18:57 »
It might be a plugin conflict. Deactivate all plugin and try again.

http://forums.lesterchan.net/index.php/topic,3444.msg24804.html#msg24804 (this bug is fixed) quite sometime ago.

http://forums.lesterchan.net/index.php/topic,1155.msg10985.html#msg10985 might worth a read

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline k_elghafri

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: estrogenat
Re: counter resets to zero when editing post
« Reply #2 on: 06 January 2010, 19:56 »
 :D
Thanks a million for the links.. It was a conflict with Revision Control Plugin.
The Code
if(!wp_is_post_revision($post_ID)) {
                   delete_post_meta($post_ID, 'views');
           }

solved the problem  ;D

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,534
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: counter resets to zero when editing post
« Reply #3 on: 07 January 2010, 04:08 »
Are you using an older version of the plugin? This bug is fixed in the current version (1.5) already.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.