ID, $tax_name); $taxonomies_html = ""; $last_key = key(array_slice($taxonomies, -1, 1, TRUE)); foreach ($taxonomies as $key => $tax) { $data["wp"] = $tax; $data["filter_link"] = admin_url('edit.php?post_type=' . $post->post_type . '&' . $tax->taxonomy . '=' . $tax->slug); $taxonomies_html .= View::get_instance()->render_html("taxonomies/taxonomy-link", $data, false); $taxonomies_html .= ($last_key != $key) ? ', ' : ''; } return (!empty($taxonomies_html)) ? $taxonomies_html : "—"; } }