I have a widgetized area and I am trying to add a new widget that can be added to my widget area,
I need the code below to be the widget output
<ul>
<?php
$args = array( 'taxonomy' => 'post_tag' );
$terms = get_terms('post_tag', $args);
$count = count($terms); $i=0;
if ($count > 0) {
foreach ($terms as $term) {
$i++;
$term_list .= '<li><a href="/tag/' . $term->slug . '" title="' . s__('View all post filed under %s', 'my_localization_domain'), name) . '">' . $term->name . '</a></li>';
}
echo $term_list;
}
?>
</ul>
I just need a tag list (not tag cloud) to be sortable with my other widgets, I tried extending the widget class but failed, please help
echo $before_widget;andecho $after_widget;add the code above, it just does not work – jasondavis Oct 3 '11 at 1:27