$meta = get_post_meta( $post->ID );
$post->category = !empty( $meta['category'] ) ? $meta['category'][0] : '';
if ( has_post_thumbnail( $post->ID ) ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'fullsize');
$post->image = aq_resize($image[0], 760, 400, true, true, true);
}?>