Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter piconomic

    (@piconomic)

    I solved it myself by going back to an older version of the following file:
    /wp-content/plugins/yop-poll/models/question_model.php

    I don’t know PHP, but performed a diff, reverted to the older version and it worked for me.

    You need to modify the function “load_answers_ids” and add two lines of “$orderby = “answer”;” Here is the relevant bit:

    function load_answers_ids( $orderby = "question_order", $orderRule = "ASC",$only_15_answer='no' ) {
    			$orderby = "answer";
              if($only_15_answer=='view_only15_answer'){
                  if($orderby=="")
                        $orderby="question_order";
                  if($orderRule=="")
                         $orderRule="ASC";
                  $orderby = "answer";
    			                if ( !$answers = $GLOBALS['wpdb']->get_col(

    Regards,
    Pieter

Viewing 1 replies (of 1 total)