From 974e8391c6b52941b686e8b8b27e75416dc4a328 Mon Sep 17 00:00:00 2001 From: PranavAwasthi Date: Mon, 25 Nov 2024 15:19:55 +0530 Subject: [PATCH] removed code which adding post thumbnail in Quiz --- php/classes/class-qmn-quiz-manager.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/php/classes/class-qmn-quiz-manager.php b/php/classes/class-qmn-quiz-manager.php index 756641c2..4d0ebd65 100644 --- a/php/classes/class-qmn-quiz-manager.php +++ b/php/classes/class-qmn-quiz-manager.php @@ -1120,29 +1120,6 @@ public function display_quiz( $options, $quiz_data, $question_amount, $shortcode $randomness_class = 0 === intval( $options->randomness_order ) ? '' : 'random'; ?>
qmn_quiz_container mlw_qmn_quiz quiz_theme_ '> 1, - 'post_type' => 'qsm_quiz', - 'meta_query' => array( - array( - 'key' => 'quiz_id', - 'value' => $quiz_data['quiz_id'], - 'compare' => '=', - ), - ), - ); - $the_query = new WP_Query( $args ); - - // The Loop - if ( $the_query->have_posts() ) { - while ( $the_query->have_posts() ) { - $the_query->the_post(); - echo get_the_post_thumbnail( get_the_ID(), 'full' ); - } - /* Restore original Post Data */ - wp_reset_postdata(); - } echo apply_filters( 'qsm_display_before_form', '', $options, $quiz_data ); $quiz_form_action = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : ''; ?>