function id_ShortDesc($attrs) { global $wpdb; if (isset($attrs['product'])) { $project_id = $attrs['product']; $project = new Deck($project_id); $short_desc = $project->short_description(); return '<div class="product-details" style="clear: both;">' . nl2br(html_entity_decode($short_desc)) . '</div>'; } else { return null; } }