Parse error: syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/u281226/v-factor.site/html/wp-content/themes/v-factor3/home.php on line 86
Вот код который был:
<?php
if ( have_posts() ) :
?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php
endif;
/* Start the Loop */
while ( have_posts() ) :
the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
get_template_part( 'template-parts/content', 'home' );
endwhile;
?>
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-12 col-md-6 col-lg-4 vfactor-header-col">
<div class="vfactor-pagination-cont">
<div class="vfactor-pagination-text">
<div class="pagination-cont">
<?php
// the_posts_navigation();
the_posts_pagination( array(
'mid_size' => 4,
'end_size' => 1,
'prev_text' => '<i class="fas fa-chevron-left"></i>',
'next_text' => '<i class="fas fa-chevron-right"></i>',
) );
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
86 строчка с ошибкой это строчка else : , в самой нижней части кода
Вот код который был:
86 строчка с ошибкой это строчка else : , в самой нижней части кода