Support » Plugin: Duplicate Post » Reset views counter after duplicate post

  • Resolved soluzioneveloce

    (@soluzioneveloce)



    Hi, I would reset the view counter after duplicating post with your plugin.

    This is very important for me because otherwise the section “popular articles last 7 days” in my homepage can’t work.

    Could you help me?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Lopo

    (@lopo)

    Hi @soluzioneveloce,
    which plugin are you using to count views? (It’s not a default WordPress feature).

    Let me know so we can try find out how to do it.

    My theme is newspaper 8, so the theme has an integrated function called “ajax post view count”.

    Thank you very much Lopo.

    I discovered that my theme newspaper 8 has 2 types of post views counter (one throught “ajax” and another “classic”). When I disable ajax the classic counter replace it.

    Plugin Author Lopo

    (@lopo)

    Hi @soluzioneveloce,
    being a premium theme I can’t test it to find how it’s storing the views.
    I suggest you to contact its support theme to ask what is the key of the custom field they’re using for that purpose. Once they’ve told you that, you can add that name in the Do not copy these fields textbox in the settings, so that the views will be filtered out when cloning the post data.

    Hope this helps! Let me know if there’s any problem.

    Hi, thank you Lopo, but the problem is that my forum didn’t answered to me.

    Please, I really need to solve this problem.

    What should I do?

    Thanks for the kindness, you’re extraordinary.

    Plugin Author Lopo

    (@lopo)

    Hi @soluzioneveloce,
    if you have access to the DB you could search in the postmeta table and see if you find a meta_key which seems related to views, like _post_views or something like that. If you see that for a certain post its meta_value is equal to the views displayed in the front-end, then you can be sure it’s that one…

    Let me know

    Thank you very much Lopo, I found it.

    It was “post_views_count”

    It works

    Plugin Author Lopo

    (@lopo)

    Glad to hear that!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.