• Resolved ericbowers

    (@ericbowers)


    My pages are blank. No errors, just empty of the content that’s intended for them. This seems to coincide with activating some social bookmarking plugins this weekend, but they have since been deactivated, except for one that I reactivated after seeing it didn’t seem to cause a problem.

    I upgraded to 2.5 last night, however I noticed this problem on my site before the upgrade as well.

    It’s kind of important for me to have my About/Contact page working, so if you have any tips, please let me know.

    This page doesn’t work and I need it to work!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Eric,

    Could you post the code that generates the loop on this page? Most likely in page.php. Seems like your loop might be broken???

    Thread Starter ericbowers

    (@ericbowers)

    Here is the page.php from inside my template.

    <?php get_header(); ?>
    
    <!-- BEGIN main -->
    <div class="main"><div id="main-inner">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <h2 class="page-title"><?php the_title(); ?></h2>
    
    <div class="page-body">
    
    </div>
    
    <?php endwhile; endif; ?>
    
    </div></div>
    <!-- END #main -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Thanks for the help.

    You’re completely missing the template tag that displays the content of a post/page: Change the code above to this:

    <?php get_header(); ?>
    
    <!-- BEGIN main -->
    <div class="main"><div id="main-inner">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <h2 class="page-title"><?php the_title(); ?></h2>
    
    <div class="page-body">
    <?php the_content(); ?>
    </div>
    
    <?php endwhile; endif; ?>
    
    </div></div>
    <!-- END #main -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Thread Starter ericbowers

    (@ericbowers)

    Problem solved. Thank you very much Nathan and Mike.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blog Pages are blank’ is closed to new replies.