talking to myself… ?? I mostly got it working as intended. There seem to be some bugs in thematic (which is the theme I am using) an in_the_loop (see https://code.google.com/p/thematic/issues/detail?id=145). Nevertheless I got this bug fixed from the SVN and my final method looks like this:
function myplugin_hide_title($title, $id) {
if (in_the_loop() && is_page(myplugin_page_name()) && $id == get_the_ID()) {
$title == '';
}
return $title;
}
add_filter('the_title', 'myplugin_hide_title', 10, 2);