Most Liked Post widget

  • Member
    June 8, 2015 at 4:26 pm #71

    I’m using Most Liked Post widget but it’s pulling posts marked as draft. Is possible to pull only publish posts? I try to change line 130 from classLDC.php:

    $sql="SELECT * FROM $table_name WHERE ul_key='$ldc_like_dislike' ORDER BY ul_value $ldc_sort";


    $sql="SELECT * FROM $table_name WHERE ul_key='$ldc_like_dislike' AND post_status = 'publish' ORDER BY ul_value $ldc_sort";

    But nothing happens..

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.