I added “global $display;” to the function in mctagmap.php. See line 4 below, which is line 124 in the php file.
// overwrite single_tag_title()
add_filter('single_tag_title', 'mctagmap_single_tag_title', 1, 2);
function mctagmap_single_tag_title($prefix = '') {
global $display;
global $wp_query;
if ( !is_tag() )
return;
$tag = $wp_query->get_queried_object();
if ( ! $tag )
return;
$my_tag_name = str_replace('|', '', $tag->name);
if ( !empty($my_tag_name) ) {
if ( $display )
echo $prefix . $my_tag_name;
else
return $my_tag_name;
}
}
-
This reply was modified 7 years, 11 months ago by bradoliver.