WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Template Code? Something went wrong, looks the same, but acting different. (2 posts)

  1. pawsingleton
    Member
    Posted 5 years ago #

    Trying to use templates for the first time. Here is the code, below, it's identical except for the `<?php
    /*
    Template Name: template1
    */
    ?>`
    at the top. rest of it is straight from the original page.php. Please take a look at the site and tell me why it's acting this way.

    Thanks.

    http://www.relationship-oneness.com

    <?php
    /*
    Template Name: template1
    */
    ?>
    <?php get_header(); ?>
    
    <div id="content_box2">
    
    		<div id="left_box">
    
    			<div id="content" class="page">
    
    				<div id="content_inner">
    
    				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    					<h1><?php the_title(); ?></h1>
    					<div class="format_text">
    <?php the_content('<p>Read the rest of this page &rarr;</p>'); ?>
    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    					</div>
    
    				</div>
    
    				<?php endwhile; endif; ?>
    
    			</div>
    
    			<?php include (TEMPLATEPATH . '/left_bar.php'); ?>
    
    		</div>
    
    		<?php get_sidebar(); ?>
    	</div>
    
    <?php get_footer(); ?>
  2. pawsingleton
    Member
    Posted 5 years ago #

    Never Mind... I fix it. Had an open Div tag when creating the page wp admin

Topic Closed

This topic has been closed to new replies.

About this Topic