get_var("SELECT guid FROM $wpdb->posts WHERE post_parent = $post->ID AND post_title LIKE '%tsr-%' LIMIT 1"); if (empty($image)) { if (empty($defaultImage)) { return; } $image = $defaultImage; } $permalink = get_permalink($post->ID); echo "post_title\" class=\"teaser-link\">\"$post-post_title\" class=\"teaser-img\" />"; } ?>