• OK. So I have a custom wordpress theme for my website. The About page renders fine on my local “MAMP” server, but on my “iPowerweb” server it does not.

    The problem is, a div tag is in the wrong place, and I cannot figure out why it is happening.

    Here is the source:

    <div id="content">
          <div class="pagetitleContainer">
            <h2>about</h2>
          </div>
    
          <?php query_posts('pagename=about'); ?>
    
          <?php if (have_posts()) : ?>
    
            <?php while (have_posts()) : the_post(); ?>
    
              <? //Post container ?>
              <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    
                <? //Post content ?>
                <div class="entry">
                  <?php the_content('Read more...'); ?>
                </div>
    
                <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
              </div>
    
            <?php endwhile; ?>
    
            <div class="navigation">
              <?php //next_posts_link('&laquo; Older') ?><?php //previous_posts_link('  |  Newer &raquo;') ?>
            </div>
          <?php endif; ?>
        </div>

    And here is what is rendered:

    <div id="content"> 
    
    						<div class="post" id="post-258">
    			<h2>about</h2>
    				<div class="entry">
    					...CONTENT...
    
    				</div>
    			</div>
    </div>

    Like I said, on my local machine it renders properly and I cannot figure out why. Local machine: PHP v5.2.10
    iPowerweb account: PHP v5.2.4

    If you could point me in the right direction I would be grateful.

  • The topic ‘Custom Template strange behavior’ is closed to new replies.