Found in another thread:
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 300,300 ), false, '' ); echo $src[0]; ?>
300,300 represents the dimension of your thumbnail. In my case the smallest being 350 x whatever. It will automatically choose the closest size to your thumbnail.
So now the question is why does that work?
Isn’t this just a bandaid for bad programming? Are there any performance drawbacks to running the reset_query?
This works great – Thanks Matt!
Any idea how to get something working on a select statement?
[select* VARIABLE include_blank "one" "two" "three" "four" "GET_VARIABLE"]
In the case above the GET_VARIABLE ends up being treated as one of the select options. If you put it prior to the include_blank it breaks the select box.