• Resolved JackMess

    (@jackmess)


    Hello, this code is not working anymore. I think is it since the last update that i made few days before.

    <?php if (function_exists(‘get_most_rated_range’)): ?>

      <?php get_most_rated_range(‘1 day’); ?>

    <?php endif; ?>

    I tried any rated_range fonction and none is working.
    Can you help us ? thanks alot

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I am not sure what you did since you mention you made some changes. It is working fine on my own site
    https://lesterchan.net/wordpress/ (see below)

    Thread Starter JackMess

    (@jackmess)

    I did not make any changes to code or functions.

    It was working fine until i guess the last update. The function who get the most liked post works fine but the one with range is not working anymore.

    Would you mind having a close look at it ?

    Thanks

    Plugin Author Lester Chan

    (@gamerz)

    I did take a look. I copied the function you posted on the first post and paste it in my theme. It works perfectly fine. I even rated one post and it appears there.

    See https://imgur.com/a/hqnvPxr

    • This reply was modified 5 years, 10 months ago by Lester Chan.
    Thread Starter JackMess

    (@jackmess)

    Can you post the code here, i will try it on my website ?

    Thank you Lester

    Thread Starter JackMess

    (@jackmess)

    As i just saw, you made some change in ratings table in dabatase. This might come from here.

    But i do not get why the request below do not work either :

    $wpdb->prepare(
       "SELECT rating_postid FROM {$wpdb->prefix}ratings WHERE rating_userid = %d",
       $id,
       ARRAY_N
    )
    • This reply was modified 5 years, 10 months ago by JackMess.
    Thread Starter JackMess

    (@jackmess)

    I fixed the problem by reinstalling the puglin.
    In case someone got the same problem like me.

    Thank you for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display Most Rated Post Within A Given Period not working anymore’ is closed to new replies.