StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 12-15-2009, 03:11 PM
bladeronner bladeronner is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2009
Posts: 33
Default Archive thumbnails showing next to the wrong post!

I have no idea why it's doing this, but the archive thumbnails are one off. They are showing one below the correct post.

Based on another thread, I added the code from the home.php into the archives.php:

<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>

That worked in getting the thumbnails to show up, but not at the right place.

Any thoughts on how to get them synced up? I'm currently using Chrome in Safari.

Here's a link to the archive page: http://tasramar.com/category/tasra365/december/

Thanks.
  #2  
Old 12-15-2009, 03:13 PM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default

Can you post your entire archive.php?
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
  #3  
Old 12-15-2009, 03:18 PM
bladeronner bladeronner is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2009
Posts: 33
Default Entire archive.php

PHP Code:
<?php get_header(); ?>

<div id="content">

    <div id="contentleft">
    
        <div class="postarea">
    
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            
            <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
            
                <div class="postauthor">
            
                    <p>Posted by <?php the_author_posts_link(); ?> on <?php the_time('F j, Y'); ?> &middot; <a href="<?php the_permalink(); ?>#comments"><?php comments_number('Leave a Comment''1 Comment''% Comments'); ?></a>&nbsp;<?php edit_post_link('(Edit)'''''); ?></p>
                    
                </div>
                
            <!--The archive page is currently using the Limit Post funtion and is currently set to display 450 characters. You can increase this or decreas it as you wish.-->
            
            <?php the_content_limit(450"[Read More...]"); ?><div style="clear:both;"></div>
            
            <div class="postmeta">
                <p>Filed under <?php the_category(', '?> &middot; Tagged with <?php the_tags(''?></p>
            </div>
                                    <?php if( get_post_meta($post->ID"thumbnail"true) ): ?>
                <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID"thumbnail"true); ?>" alt="<?php the_title(); ?>" /></a>
                <?php else: ?>
                <?php endif; ?>    
            <?php endwhile; else: ?>
                    
            <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
            <p><?php posts_nav_link(' — '__('&laquo; Previous Page'), __('Next Page &raquo;')); ?></p>
        
        </div>
    
    </div>
            
    <?php include(TEMPLATEPATH."/sidebar.php");?>

</div>

<!-- The main column ends  -->

<?php get_footer(); ?>

Last edited by adew; 12-15-2009 at 03:19 PM. Reason: Code placed in PHP tags
  #4  
Old 12-15-2009, 03:25 PM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default

Move this code:
PHP Code:
<?php if( get_post_meta($post->ID"thumbnail"true) ): ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID"thumbnail"true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php 
endif; ?>
to immediately above this:
PHP Code:
<?php the_content_limit(450"[Read More...]"); ?><div style="clear:both;"></div>
Your code is working fine, but you've placed the thumbnail code below the content, which means the thumbnail shows up against the next post down the list.
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
  #5  
Old 12-15-2009, 03:34 PM
bladeronner bladeronner is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2009
Posts: 33
Default Resolved! Works now.

Thanks so much for your help.
  #6  
Old 12-15-2009, 03:38 PM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default

You're welcome. :smile:
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
 

Tags
thumbnails, thumbs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Post thumbnails not showing up? imported_renee General Discussion 5 03-09-2010 03:01 PM
Showing list of posts on archive like individual post levivene General Discussion 3 02-01-2010 12:21 PM
Post thumbnails not showing on hom page bguanzon General Discussion 5 10-12-2009 01:17 PM
Archive in wrong place in Firefox!! steveivs42 General Discussion 4 06-02-2009 04:07 PM


All times are GMT -5. The time now is 04:38 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.