WordPress.org

Ready to get started?Download WordPress

Forums

page looks funny after i log in (1 post)

  1. 1721media
    Member
    Posted 5 years ago #

    I'm using a page template I made (disclaimer: I'm a php newbie) for this page only.
    http://llhargrove.com/tips

    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:

    <?php
    /*
    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>
    	<p>
    	  <?php the_content(); ?>
    		<?php if (is_user_logged_in()) { ?>
          <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
    </p>
    	<p>Thanks for registering. Here are the other upcoming tip sheets. </p>
    	<ul>
    	  <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>
        </ul>
    	<p>
    	  <?php endwhile; ?>
    	  <?php endif; ?>
    	  <? } else { ?>
    
                            </p>
    	<p>Thanks for your interest in the racial reconciliation resources here.</p>
    <p>Here are a few tip sheets you may find helpful.</p>
    <ul>
      <li><a href="http://llhargrove.com/breakdownwalls.pdf" 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>
    </ul>
    <p>For the rest of the tip sheets and articles, you must be logged in. <br />
      <a href="http://llhargrove.com/wp-register.php">Register first</a> then return to this page once you have logged in. </p>
      </div>
    </div>
    <? } ?>
    
    <?php include(TEMPLATEPATH."/right.php");?>
    
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags