WordPress not displaying the_content()


My web site is not displaying the content on individual pages, though it is displaying content of blog posts. Here is an example page:


I have been unable to find a solution to this problem for about a month.

I have not made any changes to the loop code (at least I think it is the loop code; the file name for the theme is loop-page.php), which I have pasted below. Prior to this error, it worked fine for the last 7 or so years. I can see all of the content in the Edit Page section of the dashboard, so I know the content is there. The error happens even when I have deactivated all plugins.

Thank you for any suggestions.


            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <?php if ( is_front_page() ) { ?>
                    <h2 class="entry-title"><?php the_title(); ?></h2>
                <?php } else { ?>
                    <h1 class="entry-title"><?php the_title(); ?></h1><?php edit_post_link('<span class="edit-entry">Edit this entry</span>'); ?>                   <?php } ?>

                <div class="entry-content">
                    <?php the_content(); ?>                     
                    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'brunelleschi' ), 'after' => '</div>' ) ); ?>
                    <?php edit_post_link( __( 'Edit', 'brunelleschi' ), '<span class="edit-link">', '</span>' ); ?>
                </div><!-- .entry-content -->
            </article><!-- #post-## -->

            <?php comments_template( '', true ); ?>
, , billwolff 1 year 2020-07-15T14:10:21-05:00 0 Answers 67 views 0

Leave an answer