Compatibility between Image Headlines plugin and Sidebar Widgets
-
I’ve got the Image Headlines plugin working beautifully for post titles, I’m quite happy with it.
I would like to use it to generate the titles of sidebar widgets. I’m familiar with widgetizing themes, but I’m not sure why this isn’t working.
This is how you make any text run through the plugin:
<?php echo ImageHeadline_render( 'Whatever text','formats' ); ?>
Here’s my functions.php code (note that I’ve changed single to double quotes to avoid escaping):
<?php
if ( function_exists("register_sidebar") )
register_sidebar(array("name"=>"Sidebar 1",
"before_widget" => "",
"after_widget" => "",
"before_title" => "<?php echo ImageHeadline_render( '",
"after_title" => "','' ); ?>",
));
?>When I use that, nothing is displayed for widget titles, but here’s what’s in the source:
<?php echo ImageHeadline_render( '
about me
','' ); ?>
So it seems like it’s not parsing the PHP that’s within the PHP. Does anybody have ideas on how to get this working?
- The topic ‘Compatibility between Image Headlines plugin and Sidebar Widgets’ is closed to new replies.