get_header(); $ansid = (!empty($_GET['ansid'])) ? esc_attr($_GET['ansid']) : ''; $quesid = (!empty($_GET['quesid'])) ? esc_attr($_GET['quesid']) : ''; if($ansid != "" && $ansid > 0 && $quesid != "" && $quesid > 0){ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$wpdb->prefix.'posts WHERE `ID` = %d AND `post_parent` = %d',$ansid,$quesid)); if(!empty($row)){ require get_template_directory() . '/templates/single-answer.php'; return; } } ?>
  • test
    0 Answers Jul 26, 2019 1 year ago
English English Nepali Nepali