ljkeashly on "the_content() stopped working"

ساخت وبلاگ

Hi,

I have a site that has been working for a number of years. It is using a custom theme. This moing the site was working properly, the_content() was working on the static home page, in category pages, etc. But this afteoon it just stopped working. No one has upgraded anything on the site today.

The home page is using page.php which has the following code in it:

<?php get_template_part('parts/header');?>
<section id="main" class="container"> <div class="row"> <div class="main col-xs-12 col-md-8"> <?php // Add the above content widget area if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Above Content Widget Area')) : endif; ?> <main id="content" role="main"> <?php if(have_posts()): while(have_posts()): the_post();?> <article role="article" id="post_<?php the_ID()?>" <?php post_class()?>> <header> <h1><?php the_title()?></h1> </header> <?php the_content(); ?> </article> <?php endwhile; else: get_template_part( '/partials/content', 'not-found' ); endif; ?> </main><!-- /#content --> <?php // Add the below content widget area if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Below Content Widget Area')) : endif; ?> </div> <?php get_sidebar(); ?> </div><!-- /.row --> <?php if (stew2015_is_active_sidebar( 'pcs-section' )) : // Add the PCS Section widget area ?> <div class="row"> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('pcs-section')) : endif; ?> </div> <?php endif; ?>
</section><!-- /.container -->
<?php get_template_part('parts/footer'); ?>

Any ideas why the_content() stopped working? This is the second site that I have had the problem on in the last week.

Thank you

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 176 تاريخ : پنجشنبه 13 خرداد 1395 ساعت: 7:06