I am trying to use the ttftitle to add an image as a title on the sidebar.
I am using the Widget Logic plugin to add the code to the widgets
I have added this code from the notes in the plugin to the widget_logic file.
add_filter('the_ttftext', 'ttftext_widget_title', 2);
function ttftext_widget_title($content='', $widget_id='')
{ preg_match("/]*>([^<]+)/",$content, $matches);
$heading=$matches[1];
$insert_img=the_ttftext( $heading, false );
$content=preg_replace("/(]*>)[^<]+/","$1$insert_img",$content,1);
return $content;
}
The title (as am image) displays fine however the text that should go with it doesn't appear.
What am I missing?
I am using Wordpress version 2.8.4
Widgetized Sidebar and my own theme (although all I have changed is the css file).