Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author whiletrue

    (@whiletrue)

    Hi Vahid,
    our plugin views are stored in the “custom_total_hits” custom field. You can manually add/edit the custom field inside the post edit screen, or write a SQL query to create/update these fields to the database.

    Thread Starter Vahid

    (@vdamanafshan)

    Thank you so much whiletrue. I found it so I’m marking this topic as resolved.

    Hi,

    I did not find the option to add/edit the number ov views in the post edit screen.

    Also I was looking into the database and couldn’t find it also.

    Any hint ?

    Regards,

    Fred

    Plugin Author whiletrue

    (@whiletrue)

    Hi fredwier,
    you can edit the number of views for a single post by going to the post “edit” screen; there, locate the “custom fields” box (if not shown, enable it from the top right “screen options” button).

    Assuming that the post has at least 1 view, you’d see a “custom_total_hits” field along with the hits count; feel free to tweak it and save the post to store the values.

    If you want to operate directly on the database, the custom fields for every post should be located in the (prefix)_postmeta table.

    found it. thanks !

    But once, I’ve changed the number of hits and save it, the number of hits is shown correctly in the post list.

    But, the post is not shown in the “most read list”.

    The look-back range is 365 days and the post is just over 30 days old. With these hits it should be in the list.

    When I change the look-back-days to 60 days, the post shows up, but not in the right order. Meaning the post has 2678 hits and is displayed between a post with 700 hits and one with close to 800 hits.

    Any idea ?

    I just changed a post which is already in the list and added an extra 1000 hits to see what happens.

    Refreshing moved that post to the correct place in the list.

    The post I described before had according to your counting 560 hits, but before installing the plug-in it is close to 2700 hits. That’s why I wanted to change it.

    I tried something else and that did the trick.

    The post was original placed on november 27th. I changed that date to yesterday and refreshed.

    Now the post is in the list “most read”. I changed the date back to the original date and it is still in the list on the right place.

    Maybe this helps. It isn’t right, but it works.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add an initial value to the views counter?’ is closed to new replies.