Testimonial error

Hi following error is showing up after validation of my webbsite containing your testimonial slider;
Stray end tag section.
From line 285, column 3; to line 285, column 12
:leftwards_arrow_with_hook: :leftwards_arrow_with_hook::leftwards_arrow_with_hook::leftwards_arrow_with_hook: </section> :leftwards_arrow_with_hook: </

`

This is the whole code of the testimonial php;

<?php

class Sydney_Testimonials extends WP_Widget {

public function __construct() {
	$widget_ops = array('classname' =&gt; 'sydney_testimonials_widget', 'description' =&gt; __( 'Display your testimonials in a slider.', 'sydney') );
    parent::__construct(false, $name = __('Sydney FP: Testimonials', 'sydney'), $widget_ops);
	$this-&gt;alt_option_name = 'sydney_testimonials_widget';
}

function form($instance) {
	$title     		= isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
	$number    		= isset( $instance['number'] ) ? intval( $instance['number'] ) : -1;
	$category   	= isset( $instance['category'] ) ? esc_attr( $instance['category'] ) : '';
	$see_all   		= isset( $instance['see_all'] ) ? esc_url_raw( $instance['see_all'] ) : '';
	$see_all_text  	= isset( $instance['see_all_text'] ) ? esc_html( $instance['see_all_text'] ) : '';	
	$autoplay    	= isset( $instance['autoplay'] ) ? intval( $instance['autoplay'] ) : 5000;	
?&gt;

&lt;p&gt;&lt;?php _e('In order to display this widget, you must first add some testimonials from your admin area.', 'sydney'); ?&gt;&lt;/p&gt;
&lt;p&gt;
&lt;label for="&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;"&gt;&lt;?php _e('Title', 'sydney'); ?&gt;&lt;/label&gt;
&lt;input class="widefat" id="&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('title'); ?&gt;" type="text" value="&lt;?php echo $title; ?&gt;" /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id( 'number' ); ?&gt;"&gt;&lt;?php _e( 'Number of testimonials to show (-1 shows all of them):', 'sydney' ); ?&gt;&lt;/label&gt;
&lt;input id="&lt;?php echo $this-&gt;get_field_id( 'number' ); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name( 'number' ); ?&gt;" type="text" value="&lt;?php echo $number; ?&gt;" size="3" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('see_all'); ?&gt;"&gt;&lt;?php _e('The URL for your button [In case you want a button below your testimonials block]', 'sydney'); ?&gt;&lt;/label&gt;
&lt;input class="widefat" id="&lt;?php echo $this-&gt;get_field_id( 'see_all' ); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name( 'see_all' ); ?&gt;" type="text" value="&lt;?php echo $see_all; ?&gt;" size="3" /&gt;&lt;/p&gt;	
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id('see_all_text'); ?&gt;"&gt;&lt;?php _e('The text for the button [Defaults to <em>See all our testimonials</em> if left empty]', 'sydney'); ?&gt;&lt;/label&gt;
&lt;input class="widefat" id="&lt;?php echo $this-&gt;get_field_id( 'see_all_text' ); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name( 'see_all_text' ); ?&gt;" type="text" value="&lt;?php echo $see_all_text; ?&gt;" size="3" /&gt;&lt;/p&gt;		
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id( 'category' ); ?&gt;"&gt;&lt;?php _e( 'Enter the slug for your category or leave empty to show all testimonials.', 'sydney' ); ?&gt;&lt;/label&gt;
&lt;input class="widefat" id="&lt;?php echo $this-&gt;get_field_id( 'category' ); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name( 'category' ); ?&gt;" type="text" value="&lt;?php echo $category; ?&gt;" size="3" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;label for="&lt;?php echo $this-&gt;get_field_id( 'autoplay' ); ?&gt;"&gt;&lt;?php _e( 'Autoplay time [ms]', 'sydney' ); ?&gt;&lt;/label&gt;
&lt;input id="&lt;?php echo $this-&gt;get_field_id( 'autoplay' ); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name( 'autoplay' ); ?&gt;" type="text" value="&lt;?php echo $autoplay; ?&gt;" size="3" /&gt;&lt;/p&gt;
		
&lt;?php
}

function update($new_instance, $old_instance) {
	$instance = $old_instance;
	$instance['title'] 			= strip_tags($new_instance['title']);
	$instance['number'] 		= strip_tags($new_instance['number']);
	$instance['see_all'] 		= esc_url_raw( $new_instance['see_all'] );	
	$instance['see_all_text'] 	= strip_tags($new_instance['see_all_text']);
	$instance['category'] 		= strip_tags($new_instance['category']);
	$instance['autoplay'] 		= absint($new_instance['autoplay']);
	
	$alloptions = wp_cache_get( 'alloptions', 'options' );
	if ( isset($alloptions['sydney_testimonials']) )
		delete_option('sydney_testimonials');		  
	  
	return $instance;
}

// display widget
function widget($args, $instance) {
	$cache = array();
	if ( ! $this-&gt;is_preview() ) {
		$cache = wp_cache_get( 'sydney_testimonials', 'widget' );
	}

	if ( ! is_array( $cache ) ) {
		$cache = array();
	}

	if ( ! isset( $args['widget_id'] ) ) {
		$args['widget_id'] = $this-&gt;id;
	}

	if ( isset( $cache[ $args['widget_id'] ] ) ) {
		echo $cache[ $args['widget_id'] ];
		return;
	}

	ob_start();
	extract($args);

	$title 			= ( ! empty( $instance['title'] ) ) ? $instance['title'] : '';
	$title 			= apply_filters( 'widget_title', $title, $instance, $this-&gt;id_base );
	$see_all 		= isset( $instance['see_all'] ) ? esc_url($instance['see_all']) : '';
	$see_all_text 	= isset( $instance['see_all_text'] ) ? esc_html($instance['see_all_text']) : '';
	$number 		= ( ! empty( $instance['number'] ) ) ? intval( $instance['number'] ) : -1;
	if ( ! $number ) {
		$number = -1;
	}			
	$category 		= isset( $instance['category'] ) ? esc_attr($instance['category']) : '';
	$autoplay 		= ( ! empty( $instance['autoplay'] ) ) ? intval( $instance['autoplay'] ) : 5000;

	$testimonials = new WP_Query( array(
		'no_found_rows'       =&gt; true,
		'post_status'         =&gt; 'publish',
		'post_type' 		  =&gt; 'testimonials',
		'posts_per_page'	  =&gt; $number,
		'category_name'		  =&gt; $category
	) );
	
	echo $args['before_widget'];

	if ($testimonials-&gt;have_posts()) :

?>
<?php if ( $title ) echo $before_title . $title . $after_title; ?>
<div class=“col-md-12”>
<div class=“roll-testimonials” data-autoplay="<?php echo intval($autoplay); ?>">
<?php while ( $testimonials->have_posts() ) : $testimonials->the_post(); ?>
<?php $function = get_post_meta( get_the_ID(), ‘wpcf-client-function’, true ); ?>
<div class=“customer”>

<?php the_content(); ?>

<?php if ( has_post_thumbnail() ) : ?>
<div class=“avatar”>
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?>
<div class=“name”>
<?php the_title(); ?>
<span><?php echo esc_html($function); ?></span>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
		&lt;?php if ($see_all != '') : ?&gt;
			<a>" class="roll-button more-button"&gt;
				&lt;?php if ($see_all_text) : ?&gt;
					&lt;?php echo $see_all_text; ?&gt;
				&lt;?php else : ?&gt;
					&lt;?php echo __('See all our testimonials', 'sydney'); ?&gt;
				&lt;?php endif; ?&gt;
			</a>
		&lt;?php endif; ?&gt;	


	&lt;/section&gt;		
&lt;?php
	echo $args['after_widget'];	
	wp_reset_postdata();
	endif;
	if ( ! $this-&gt;is_preview() ) {
		$cache[ $args['widget_id'] ] = ob_get_flush();
		wp_cache_set( 'sydney_testimonials', $cache, 'widget' );
	} else {
		ob_end_flush();
	}
}

Hello Nihal,

Thank you for reporting this issue.

I have asked our Lead Developer and he told that you can ignore it for now as most likely this doesn’t cause any damage.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Same error here. Won´t you guys update the testimonials.php to solve the problem?

Hello Zwuckel,

testimonials.php should be updated soon, we probably missed this issue.

Please feel free to ask any other questions that you might have in future.

Kind Regards, Roman.

Hello Roman,

thanks for your support.

I just updated the php on my own. But every Theme-Update will overwrite it, because it can´t changed in the child theme.

btw: One of the best Themes for wordpress and a very helpful support-forum here!

You are welcome Zwuckel, and thank you for the kind words! :slight_smile:

Kind Regards, Roman.