'about-section', 'description' => esc_html__( 'Suitable for About Us page.', 'foodhunt' ) ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::__construct( false, $name = esc_html__( 'TG: Featured Single Page', 'foodhunt' ), $widget_ops, $control_ops); } function form( $instance ) { $defaults['title'] = ''; $defaults['text'] = ''; $defaults['page_id'] = ''; $defaults['button_text'] = ''; $defaults['button_url'] = ''; $defaults['button_icon'] = ''; $instance = wp_parse_args( (array) $instance, $defaults ); $title = esc_attr( $instance['title'] ); $text = esc_textarea( $instance['text'] ); $page_id = absint( $instance['page_id'] ); $button_text = esc_attr( $instance['button_text'] ); $button_url = esc_url( $instance['button_url'] ); $button_icon = esc_attr( $instance['button_icon'] ); ?>

' ','name' => $this->get_field_name( 'page_id' ), 'selected' => $page_id ) ); ?>

Refer here', 'foodhunt' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( $url ) ); echo $link; ?>

have_posts() ):$the_query->the_post(); if( has_post_thumbnail() ) { ?> esc_attr( $img_alt ), 'title' => esc_attr( $title_attribute ), ); ?>
' . esc_html( get_the_title() ) . ''; $output .= '
' . '

' . esc_html( get_the_excerpt() ) . '

'; if( $button_url == '' ) { $button_url = get_permalink(); } if( !empty( $button_text ) ) { $output .= '' . esc_html( $button_text ) . ' '; } echo $output; ?>