Problem With Single Post Pages

  • Unknown's avatar

    I had to fix my single post pages because the template I used didnt match the main page. So I copied the code from the main page and now the actual post content doesnt show up and the side bar isnt lining up on the side.

    You can see it here: http://sunglasstic.com/index.php/44/fashionable-links/

    And here’s the code:

    <quote>$temp_post = $post;
    
    load_theme_textdomain('gluedideas_subtle');
    
    ?>
    <?php
    get_header();
    ?>
    
    <div id="loop_articles">
    
    <?php 
    
    if ($aOptions['lead_cats'] != '') { query_posts('category_name=' . $aOptions['lead_cats']); }
    
    if (have_posts()) : 
    
    	$iLeadIndex = 0;
    
    	while (have_posts()) : the_post(); 
    
    		$iLeadIndex++;
    		$sPostClass = '';
    		$bShowContent = true;
    
    		if ($iLeadIndex <= $aOptions['lead_count']) {
    			$sPostClass .= ' lead';
    			$bShowContent = true;
    		} else {
    			$sPostClass .= ' summary';
    			$bShowContent = false;
    		}
    
    		if ($iLeadIndex == $aOptions['lead_count'] + 1) {
    			echo ('<h2>' . __('Previous Articles') . '</h2>');
    		}
    
    ?>
    
    				<div id="post_<?php the_ID(); ?>" class="post<?php echo($sPostClass); ?>">
    					<h3 class="title"><a>"><span><?php the_title(); ?></span></a></h3>
    					<ul class="metalinks">
    						<li class="icon author"><?php _e("Posted by", 'gluedideas_subtle'); ?> <?php the_author_posts_link(); ?></li>
    						<li class="icon date"><?php the_time(get_option('date_format')) ?></li>
    </ul>
    					<?php if ($aOptions['show_metalinks']) : ?>
    					<ul class="metalinks">
    						<li class="icon comment"><a>#comments"><?php comments_number(__('No Responses', 'gluedideas_subtle'),__('One Response', 'gluedideas_subtle'),'% ' . __('Responses', 'gluedideas_subtle')); ?></a></li>
    						<li class="icon delicious"><a>&title=<?php echo urlencode(get_the_title()); ?>">Del.icio.us</a></li>
    						<li class="icon digg"><a href="http://www.digg.com/submit">Digg</a></li>
    						<li class="icon technorati"><a>">Technorati</a></li>
    </ul>
    					<?php endif; ?>
    					<br class="clear" />
    					<?php if ($bShowContent) : ?>
    					<div class="content">
    						<?php the_content(''); ?>
    						<ul class="links">
    							<li class="icon jump"><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) : ?><a>#more-<?php the_ID(); ?>">Continue reading</a><?php endif; if ('open' == $post->comment_status) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { echo(" or "); } ?><a>#comments"><?php _e("Leave a comment...", 'gluedideas_subtle'); ?></a><?php elseif (get_comments_number() > 0) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { _e(" or ", 'gluedideas_subtle'); } ?><a>#comments"><?php _e("Read comments...", 'gluedideas_subtle'); ?></a><?php endif; ?></li>
    						<?php if ($aOptions['show_feedflare'] && $aOptions['feedburner'] != '') : ?>
    							<script src="http://feeds.feedburner.com/~s/<?php echo(str_replace('http://feeds.feedburner.com/', '', $aOptions['feedburner'])) ?>?i=<?php the_permalink() ?>" type="text/javascript" charset="utf-8"></script>
    						<?php endif; ?>
    						</ul>
    					</div>
    					<?php endif; ?>
    				</div>
    
    <center><img src="http://sunglasstic.com/wp-content/uploads/2007/07/dotborder.png" alt="dotborder.png" />
    </center>
    
    <?php 
    
    	endwhile; 
    
    else : 
    
    ?>
    
    				<h2><?php _e("Oops - There's Nothing Here", 'gluedideas_subtle'); ?></h2>
    				<?php _e("It looks like the blog owner hasn't written anything yet!", 'gluedideas_subtle'); ?>
    
    <?php 
    
    endif; 
    
    ?>
    
    			</div>
    
    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    
    <!-- Content End -->
    <?php get_footer(); ?>

    </quote>

    Can anyone tell me what Im doing wrong?

  • Unknown's avatar

    Mmmm.. I’m not so good at coding and javascripting.

  • Unknown's avatar

    You’re at the wrong site, you need to be posting this over at http://www.wordpress.org

    Collin

  • Unknown's avatar

    http://wordpress.org/support/ to be exact is where you need to be as you are hosted elsewhere and not on wordpress.com!

    Trent

  • The topic ‘Problem With Single Post Pages’ is closed to new replies.