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