'related', 'ap_title' => get_the_title(get_question_id()), 'post_type' => 'question', 'post__not_in' => array(get_question_id()), 'post_status' => 'publish', 'showposts' => ap_opt('question_per_page'), ); $question = new WP_Query( $question_args ); include ap_get_theme_location('questions-widget.php'); echo $args['after_widget']; wp_reset_postdata(); } public function form( $instance ) { $title = __( 'Related Questions', 'ap' ); $avatar = 30; $show_selected = false; $show_activity = true; $show_answers = true; $show_vote = false; $show_views = false; $show_category = false; $show_tags = false; $order = 'active'; $label = ''; if ( isset( $instance[ 'title' ] ) ) $title = $instance[ 'title' ]; if ( isset( $instance[ 'avatar' ] ) ) $avatar = $instance[ 'avatar' ]; if ( isset( $instance[ 'show_selected' ] ) ) $show_selected = $instance[ 'show_selected' ]; if ( isset( $instance[ 'show_activity' ] ) ) $show_activity = $instance[ 'show_activity' ]; if ( isset( $instance[ 'show_vote' ] ) ) $show_vote = $instance[ 'show_vote' ]; if ( isset( $instance[ 'show_views' ] ) ) $show_views = $instance[ 'show_views' ]; if ( isset( $instance[ 'show_category' ] ) ) $show_category = $instance[ 'show_category' ]; if ( isset( $instance[ 'show_answers' ] ) ) $show_answers = $instance[ 'show_answers' ]; if ( isset( $instance[ 'show_tags' ] ) ) $show_tags = $instance[ 'show_tags' ]; if ( isset( $instance[ 'order' ] ) ) $order = $instance[ 'order' ]; if ( isset( $instance[ 'label' ] ) ) $label = $instance[ 'label' ]; ?>
>
>
>
>
>
>
>