Support » Themes and Templates » Broken Theme in 2.7

  • Resolved nick3216


    In 2.7 my theme no longer displays the post (or page content):

    Here’s a screenshot:

    And here’s the code that was working in 2.6.2.

    ` <?php while (have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2><?php the_time(‘F jS, Y’) ?></h2>
    <h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”entry”>
    <?php the_content(__(‘Read the rest of this entry »’)); ?>
    </div><!– entry –>
    <p class=”metadata”><small>
    Posted by <?php the_author() ?>
    <?php edit_post_link(‘ [Edit This]’,”,”); ?> | Filed under <?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></small></p>
    </div><!– /post –>
    <?php endwhile; ?>`

    And here’s the resulting HTML:

    ` <div class=”post” id=”post-608″>
    <h2>October 24th, 2008</h2>
    <h3>UCI Bans Tight Fitting Clothing</h3>
    <div class=”entry”>

    </div><!– entry –>
    <p class=”metadata”><small>

    Posted by Nick [Edit This] | Filed under culture, race | 4 Comments »</small></p>
    </div><!– /post –>`

    (The source can be seen at Use View Source and ignore the black layer over the top of the page text, it’s only there to hide the content while I try to fix this bug).

    As you can see the ‘entry’ div is completely empty of content. I know that the database comtents are still there because I can edit the post.

    Comment text is also not showing up.

    I’m particularly frustrated because I have a similar loop, though different layout, in another website also running WordPress 2.7, and that displays fine. I even pasted the contents disply code from the working into the broken website in order to then modify it to the old layout, but it don’t work.

    Working site code:

    `<div class=”post” id=”post-<?php the_ID(); ?>”><!–<?php the_date(”,”,”); ?>–>
    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>

    <div class=”storycontent”>
    <?php the_content(__(‘(more…)’)); ?>
    </div><!– /story –>`

  • The topic ‘Broken Theme in 2.7’ is closed to new replies.