• It is suppose to display one Full post. But it is displaying 4 posts. this is part of the code…but there is something else funny about this template page… I will post another comment to display the full code

    <div id="content">
    
    				<div class="home-post-list-1">
    
    					<h3 class="home-post-list">Other Recent Articles</h3>
    
    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?>
    <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?>
    
    					<div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>">
    
    						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    <?php include (TEMPLATEPATH . '/postinfo.php'); ?>
    
    						<div class="entry clearfix">
    							<?php the_content(''); ?>
    							<div><a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a></div>
    						</div>
    
    					</div>
    
    <?php endwhile; endif; ?>
    
    <?php include (TEMPLATEPATH . '/bot-nav.php'); ?>
    
    				</div>
Viewing 1 replies (of 1 total)
  • Thread Starter sustydana

    (@sustydana)

    here is the full code. where the “other recent post” repeats.

    <div id="content">
    
    				<div class="home-post-list-1">
    
    					<h3 class="home-post-list">Other Recent Articles</h3>
    
    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?>
    <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?>
    
    					<div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>">
    
    						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    <?php include (TEMPLATEPATH . '/postinfo.php'); ?>
    
    						<div class="entry clearfix">
    							<?php the_content(''); ?>
    							<div><a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a></div>
    						</div>
    
    					</div>
    
    <?php endwhile; endif; ?>
    
    <?php include (TEMPLATEPATH . '/bot-nav.php'); ?>
    
    				</div>
    <br />
    <div id="content">
    <div class="home-post-list-1">
    
    <h3 class="home-post-list">Recent Articles</h3>
    		<?php $recent = new WP_Query("cat=1&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
    
                <a style="float:left;margin:10px;" href="<?php the_permalink() ?>" rel="bookmark"><?php echo get_the_image(array('Thumbnail','My Thumbnail'),'thumbnail','/wp-content/my-image.jpg'); ?> </a>            <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
               <p><font color="4dc5d6">By <?php the_author(); ?> ~ <?php the_time('F j, Y'); ?></font>  <font size="1"><?php comments_popup_link('Comments', '1 Comment', '% Comments'); ?></font></p>
                <?php the_excerpt(); ?> 
    
                <div style="border-bottom:2px dotted #f5851f; margin-bottom:10px; padding:10px; clear:both;"></div>
    
                <?php endwhile; ?>
    </div>
    </div>
    
    <?php } else { // Do stuff specific to non-first page ?>
    
    			<div id="content">
    
    				<div class="home-post-list-1">
    
    					<h3 class="home-post-list">Other Recent Articles</h3>
    
    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?>
    <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?>
    
    					<div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>">
    
    						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    <?php include (TEMPLATEPATH . '/postinfo.php'); ?>
    
    						<div class="entry clearfix">
    							<?php the_content(''); ?>
    							<div><a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a></div>
    						</div>
    
    					</div>
    
    <?php endwhile; endif; ?>
    
    <?php include (TEMPLATEPATH . '/bot-nav.php'); ?>
    
    				</div>

Viewing 1 replies (of 1 total)

The topic ‘All the sudden..it stopped working’ is closed to new replies.