Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter olivermcgee_webmaster

    (@olivermcgee_webmaster)

    Turns out that ACF uses that metabox for its fields. The resulted in covering your field. ACF has 2 options Seamless and standard (metabox). Because it was set to standard it was breaking the top ten count. views would com in and then the user would update the fields in ACF causing the top ten count to reset. (frustrating right) So It might be good to know that the behavior can occur when planning future versions.

    Oh and i fixed Item 2. by changing that value from 365 days to 1 day. Thanks for you help here it has been invaluable.

    Thread Starter olivermcgee_webmaster

    (@olivermcgee_webmaster)

    I Am also seeing an odd behavior that I’m not sure how to fix. I am using the setting to refresh the count at midnight but the daily stats never refresh. Have you seen this before.

    I need to display the overall count on the site and a daily count in the dashboard but “Today’s Views” never resets…

    Thread Starter olivermcgee_webmaster

    (@olivermcgee_webmaster)

    I like that idea. I never would have thought to approach it after the count function had run. Thank you, Ill give that a try. I’m really interested in hearing more about editing the views in the metabox to. Do you have this documented somewhere I can look into it further? Is this something that any end user with minimal coding experience can do?

    If I could take what he has added and dump it into the topten table and have him use a supported function that would be ideal. I try to refrain from modifying plugins as much as possible so that I don’t inhibit updates.

    I inherited this site so I have had to build on the last developers work which I’m sure you can imagine how frustrating that has been. So maybe you can take this as a feature request. Add user friendly fields to add in manual views.

    Thread Starter olivermcgee_webmaster

    (@olivermcgee_webmaster)

    Thank you for the reply

    I have been manipulating the here and there trying to get this to work and I was able to display the views in the widget as they are displayed in each post by adding these variables the output.

    get_field(‘total_likes’, $postid)
    get_field(‘total_views’, $postid)

    so by that logic what I’m looking for is a the function or variable that I need to modify to add the sum to the count that’s used to populate the display order. We are displaying the all time top 25 in the widget if that helps. http://olivermcgee.org.

    I know the simple answer is to manually update the number in the database tables and for me that’s a simple solution but for my end user I used ACF to give him a place to include the additional views and likes while editing the post. I hope that makes sense.

Viewing 4 replies - 1 through 4 (of 4 total)