I'm trying to add a bit of content to thematic_postheader_posttitle, but the filter I'm using doesn't seem to be having any affect whatsoever. After looking at this thread I pared down the function/filter to just postheader_posttitle (rather than all of postheader).
Unfortunately, currently, I seem to be forcing the page into some sort of loop, or something--rather than output any code, the page takes a LONG time to load, then returns a blank page.
Here's what I've got:
function toughbubbles_postheader_posttitle() {
global $id, $post, $authordata;
if (is_single() || is_page()) {
$posttitle = '<h1 class="entry-title">' . get_the_title() . "</h1>\n";
} elseif (is_404()) {
$posttitle = '<h1 class="entry-title">' . __('Not Found', 'thematic') . "</h1>\n";
} else {
$posttitle = '<h2 class="entry-title"><a href="';
$posttitle .= get_permalink();
$posttitle .= '" title="';
$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
$posttitle .= '" rel="bookmark">';
$posttitle .= get_the_title();
$posttitle .= "</a> yo </h2>\n";
//I'll eventually remove the 'yo' in the above line and replace it with this:
//$posttitle .= get_the_subheading(59,"<h3>","</h3>","false");
}
$posttitle = apply_filters('thematic_postheader_posttitle',$posttitle);
return $posttitle;
}
add_filter('thematic_postheader_posttitle','toughbubbles_postheader_posttitle')
What am I doing wrong?