Support » Themes and Templates » page looks funny after i log in

  • I’m using a page template I made (disclaimer: I’m a php newbie) for this page only.

    It has a restricted portion that only logged in users can see. When you do log in you see this.

    This is my code for the page:

    Template Name: Members Only
    <?php get_header(); ?>
    <?php include(TEMPLATEPATH."/left.php");?>
    <div id="content">
      <div class="post" id="post-<?php the_ID(); ?>">
    	<h2><?php the_title(); ?></h2>
    	  <?php the_content(); ?>
    		<?php if (is_user_logged_in()) { ?>
          <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
    	<p>Thanks for registering. Here are the other upcoming tip sheets. </p>
    	  <li>7 Ways to be more racially sensitive</li>
    	  <li>7 Ways to be more committed cross-racially </li>
    	  <li>7 Ways to be more racially sincere </li>
    	  <li>7 Ways to build racial interdependence into your life </li>
    	  <li>7 Ways to conquer racial bitterness</li>
    	  <?php endwhile; ?>
    	  <?php endif; ?>
    	  <? } else { ?>
    	<p>Thanks for your interest in the racial reconciliation resources here.</p>
    <p>Here are a few tip sheets you may find helpful.</p>
      <li><a href="" target="_blank">6 Ways for Church Folk to Break Down Racial Walls</a> </li>
      <li>11 Ways to Talk About Race Without Going Crazy  </li>
    <p>For the rest of the tip sheets and articles, you must be logged in. <br />
      <a href="">Register first</a> then return to this page once you have logged in. </p>
    <? } ?>
    <?php include(TEMPLATEPATH."/right.php");?>
    <?php get_footer(); ?>

  • The topic ‘page looks funny after i log in’ is closed to new replies.