Hi guys,
i'm looking for a way to override the function thematic_postfooter.
My plan is to remove the categories and post tags info from the div .entry-utility located in the post footer.
I know you can remove the div tages for these 2 things using css, but I'm trying to get to grips with usings functions to remove some content.
heres the existing thematic_postfooter function:
// Information in Post Footer
function thematic_postfooter() {
global $id, $post;
if ($post->post_type == 'page' && current_user_can('edit_posts')) { /* For logged-in "page" search results */
$postfooter = '<div class="entry-utility">' . thematic_postfooter_posteditlink();
$postfooter .= "</div><!-- .entry-utility -->\n";
} elseif ($post->post_type == 'page') { /* For logged-out "page" search results */
$postfooter = '';
} else {
if (is_single()) {
$postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postconnect();
} else {
$postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postcomments();
}
$postfooter .= "</div><!-- .entry-utility -->\n";
}
// Put it on the screen
echo apply_filters( 'thematic_postfooter', $postfooter ); // Filter to override default post footer
} // end thematic_postfooter
so if I want to create my own function like, the following, how can I get it to override the thematic 'thematic_postfooter' function ?
Any help is appreciated.
function my_postfooter() {
global $id, $post;
if ($post->post_type == 'page' && current_user_can('edit_posts')) { /* For logged-in "page" search results */
$postfooter = '<div class="entry-utility">' . thematic_postfooter_posteditlink();
$postfooter .= "</div><!-- .entry-utility -->\n";
} elseif ($post->post_type == 'page') { /* For logged-out "page" search results */
$postfooter = '';
} else {
if (is_single()) {
$postfooter = '<div class="entry-utility">' . thematic_postfooter_postconnect();
} else {
$postfooter = '<div class="entry-utility">' . thematic_postfooter_postcomments();
}
$postfooter .= "</div><!-- .entry-utility -->\n";
}
echo apply_filters( 'my_postfooter', $postfooter );
}