Получение ошибки page.php при создании новой страницы в WordPress

<?php get_header(); ?>
</div><!--END CONTAINER-->
<?php
if (get_field('header_image')){
$image = get_field('header_image');
if (get_field('do_not_use_page_title')){
$title = get_field('alternate_page_title');
}else {
$title = get_the_title();
}
if (get_field('subheading')) $subheading = get_field('subheading');
?>
<div class="page-header" style="background-image: url(<?php echo $image['url']?>);">
<?php echo "<h1>$title</h1>"; ?>
<?php if ($subheading) { echo "<h2>$subheading</h2>";} ?>
</div>
<?
}
?>
<div class="container">
<div id="content" class="clearfix row">

<div id="main" class="col-sm-8 clearfix" role="main">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">

<?php if (!(get_field('header_image'))) { ?>
<header>

<div class="page-header"><h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1></div>

</header> <!-- end article header -->
<?php } ?>

<section class="post_content clearfix" itemprop="articleBody">
<?php the_content(); ?>

</section> <!-- end article section --></article> <!-- end article --><?php endwhile; ?>

<?php else : ?>

<article id="post-not-found">
<header>
<h1><?php _e("Not Found", "wpbootstrap"); ?></h1>
</header>
<section class="post_content">
<p><?php _e("Sorry, but the requested resource was not found on this site.", "wpbootstrap"); ?></p>
</section>
<footer>
</footer>
</article>

<?php endif; ?>

</div> <!-- end #main --></div> <!-- end #content -->

При создании новой страницы в WP я получаю сообщение об ошибке

Parse error: syntax error, unexpected end of file in /home/example.com/example/public_html/wp-content/themes/exampletheme/page.php on line 69

Я не смог найти никаких ошибок в php, которые могли бы вызвать эту ошибку синтаксического анализа. Другие страницы, которые уже присутствовали на сайте, работают нормально, но создание новых страниц и их просмотр / предварительный просмотр приводит к появлению пустой страницы с указанной выше ошибкой. Любая помощь будет оценена, спасибо.

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector