__( 'Aspire Smart FAQ Widget for Single FAQ', 'text_domain' ), ) // Args ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { // outputs the content of the widget // One variable is coming in INSTANCE ARRAY , title $title = apply_filters( 'widget_title', $instance['title'] ); $atts['id'] = $title; echo $args['before_widget'].'
Enter FAQ id to display that specific FAQ