Forum Replies Created

Viewing 2 replies - 31 through 32 (of 32 total)
  • Here’s what I use:

    <?php
    						if ($images = get_children(array(
    						'post_type' => 'attachment',
    						'numberposts' => 1,
    						'post_status' => null,
    						'post_parent' => $post->ID,)))
    
    						foreach($images as $image) {
    						$attachment=wp_get_attachment_image_src($image->ID, $size);
    						?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $attachment[0]; ?>&h=200&w=200&zc=1" alt="<?php the_title(); ?>" /></a>
    						<?php } else { ?>
               					<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/preview.jpg" alt=""/></a>
               				<?php } ?>

    You’ll need to make sure you download the timthumb.php script (just google it) and put it in your theme folder in a folder called “scripts”.

    Sorry, logged in with old account…

    Anyway, thanks for the honesty in your post. I left a comment explaining our standpoint on the issue.

    Just know that we are currently working on a solution.

Viewing 2 replies - 31 through 32 (of 32 total)