WordPress.org

Ready to get started?Download WordPress

Forums

simple post thumbnails (3 posts)

  1. tjobbe
    Member
    Posted 5 years ago #

    Head scratching here: http://wordpress.org/extend/plugins/simple-post-thumbnails/

    I can't get this to work, have uploaded the files, I can go into a post and add a thumbnail, but when calling the image it wont show up, heres my index.php:

    <?php get_header(); ?>
    <div id="content-container">
    
    <div id="content">
    
    	<div id="body">
    
    	<?php if (have_posts()) : ?>
    
    <?php query_posts('showposts=1&offset=0'); ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <?php p75GetThumbnail($post->ID, 200, 150); ?>
    <h4><?php the_title(); ?></h4>
    <?php the_excerpt (); ?>
    <a class="read-more" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">More...</a>
    <?php endwhile; ?>
    
    <?php query_posts('showposts=1&offset=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <h4><?php the_title(); ?></h4>
    <?php the_excerpt (); ?>
    <a class="read-more" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">More...</a>
    <?php endwhile; ?>
    
    <?php query_posts('showposts=1&offset=2'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <h4><?php the_title(); ?></h4>
    <?php the_excerpt (); ?>
    <a class="read-more" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">More...</a>
    <?php endwhile; ?>
    
    <?php query_posts('showposts=1&offset=3'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <h4><?php the_title(); ?></h4>
    <?php the_excerpt (); ?>
    <a class="read-more" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">More...</a>
    <?php endwhile; ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_footer(); ?>

    Any ideas on how to get the thumbnail to show up?

  2. tjobbe
    Member
    Posted 5 years ago #

    figured it out:

    <img alt="<?php the_title(); ?>" src="<?php echo p75GetThumbnail($post->ID, null, null); ?>" border="0" />

    i wasn't echoing anything!

  3. intricateartist
    Member
    Posted 4 years ago #

    THANK YOU SO MUCH for posting the actual code - that is not available in the usage instructions - though it should be!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.