• I’m using Stealth Grey Mix Red theme and you’ll notice that if you click on any of the recent posts, they all go to the same post. I can’t find the bug!

    http://etsianblogs.com/

    I’d be happy to post whatever code if needed… thank you so much,

    Amanda

Viewing 3 replies - 1 through 3 (of 3 total)
  • Everyone of the links in the Recent Posts go to http://feeds.feedburner.com/~r/NodinsNest/~3/287601782/number-matching.html

    Something in your .htaccess file?
    Is it your Permalinks?
    Some plugin?

    Thread Starter etsianblogs

    (@etsianblogs)

    Right, as recent posts updates, all of the links go to whatever the very last recent post link is. Right now they all go to Pallax Photo. I assume it must be in that section of the sidebar.php code.

    <table cellspacing="0" cellpadding="0" border="0" width="200px" style="margin-top:5px;">
    
    <tr><td width="7px"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rulu.gif" alt="rulu"></td><td class="z1"></td><td width="7px"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/ruru.gif" alt="ruru"></td></tr>
    
    <tr class="z1"><td class="z1"></td><td>
    
    <table cellspacing="0" cellpadding="0" class="n1" width="100%">
    
    <tr valign="top"><td class="grrlu"></td><td  class="grrru"></td></tr>
    
    <tr><td colspan="2">
    
     <li id="archives"><?php _e('Recent Posts:'); ?>
    
     	<ul>
    
    	 <?php
    
    						$posts = get_posts('numberposts=25&offset=0');
    
    						foreach ($posts as $post) :
    
    					?>
    
    					<li>
    
    					<a href="<?php the_permalink(); ?>" title="<?php the_title() ?>"><?php the_title() ?></a>
    
    					</li>
    
    					<?php
    
    						endforeach;
    
    					?>
    
     	</ul>
    
     </li>
    
    </td></tr>
    
    </table>
    
    </td><td class="z1"></td></tr>
    
    <tr><td width="7px"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/ruld.gif" alt="ruld"></td><td class="z1"></td><td width="7px"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rurd.gif" alt="rurd"></td></tr>
    
    </table>

    Why not use the template tag, wp_get_archives()?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sidebar “recent posts” all go to the same post!’ is closed to new replies.