This my function, I do not know why there is a problem.
Parse error: syntax error, unexpected 'echo' (T_ECHO) in D:\OSPanel...
<?php function set_gallery($type_filter) { ?>
<?php $gallery_postes = array();
$args = set_arges($type_filter); //Create $ARGS and RETURN $set_args
$gallerys_posts = new WP_Query($args);
if( $gallerys_posts->have_posts() ) :
while ( $gallerys_posts->have_posts() ) :
$gallerys_posts->the_post();
$retgel = '
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 shuffle-item filtered">
<div class="portfolio-item">
<a href="' .echo get_permalink(get_the_id());.'">'.
^--[there is a problem here]
if ( get_the_post_thumbnail(get_the_id()) ) {
echo get_the_post_thumbnail( get_the_id(), array(620, 423 ));
}
.'<div class="portfolio-overlay">
<div class="caption">'.
the_title();
.'<span>'.
echo get_the_content();
.'</span>
</div>
</div>
</a>
</div>
</div>';
array_push($gallery_postes, $retgel);
endwhile; endif; // new WP_Query ?>
<?php return $gallery_postes; ?>
<?php } ?>