hey, i’m using this code to show today’s event in the sidebar:
<?php $temp_query = $wp_query; ?>
<?php
$today = getdate();
query_posts('category_name=Events&posts_per_page=1&year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"] );
?>
<?php while (have_posts()) : the_post(); ?>
<div style="float:left;" class="thickbox"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( array(92,69) ); ?></a></div>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_excerpt(); ?>
<div class="deezclear"></div>
<?php endwhile; ?>
<?php $wp_query = $temp_query; ?>
The thumbnail currently links to the post url, i want to make it link to the full size image instead.
I gather that this is the code to use:
wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) );
but i’m not sure how to apply it…
i know that i need to “echo” it, but i can’t get the syntax right.
any chance someone could show me how to put those codes together?
thanks!