Revision: 64202
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2013 04:15 by JoshChris
Initial Code
<?php /* This code filters the Categories archive widget to include the post count inside the link */ add_filter('wp_list_categories', 'cat_count_span'); function cat_count_span($links) { $links = str_replace('</a> (', ' (', $links); $links = str_replace(')', ')</a>', $links); return $links; } /* This code filters the Archive widget to include the post count inside the link */ add_filter('get_archives_link', 'archive_count_span'); function archive_count_span($links) { $links = str_replace('</a> (', ' (', $links); $links = str_replace(')', ')</a>', $links); return $links; }?>
Initial URL
https://gist.github.com/BronsonQuick/2692275
Initial Description
Genius stuff right here from https://gist.github.com/BronsonQuick
Initial Title
Move the posts count inside the link of the Archive and Category widgets of WordPress
Initial Tags
wordpress
Initial Language
PHP