WordPress.org

Ready to get started?Download WordPress

Forums

Need help with single.php (4 posts)

  1. chmura
    Member
    Posted 6 years ago #

    For some reason when I click on a post and I'm not logged in, the page gets screwed up. But when logged in, it's all fine.
    Please I need some help fixing this issue
    example http://www.facethemusik.net/2008/03/05/new-theme/

    <?php get_header(); ?>
    <div id="text">
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    	<div class="posttop"><div class="postdate"><div class="dateday"><?php the_time('d') ?></div><div class="datemonth"><?php the_time('M') ?></div><div class="dateyear"><?php the_time('Y') ?></div></div>
        <div class="pub"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
      	<div class="postedby">posted by <span class="authora"><?php the_author() ?></span></div><div class="fileunder">file under <?php the_category(', ') ?></div> <div class="editbutton"><?php edit_post_link('Edit'); ?></div></div>
        <div class="cleaner"></div>
        </div>
    
    	<?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    	<?php endwhile; ?>
    <div id="nav">
    <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    </div>
    <?php comments_template(); ?>
    	<?php else : ?>
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  2. moshu
    Member
    Posted 6 years ago #

  3. chmura
    Member
    Posted 6 years ago #

    Thanks moshu, but I'm not sure what to do with this.
    I tried doing some editing from the info that validator gave me, but only received more errors.
    Any help would be greatly appreciated

  4. chmura
    Member
    Posted 6 years ago #

    Got it working, all I had to do is close a div tag in footer.php and single.php =]

Topic Closed

This topic has been closed to new replies.

About this Topic