Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter durroon

    (@durroon)

    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);
    Thread Starter durroon

    (@durroon)

    ok, I tried the following using ‘in_the_loop()’ conditional. First I thought it would work, but this also returns true if its called within sidebars/widgets.

    if (in_the_loop() && is_page(myplugin_page_name())) $title = '';

    any suggestions on this?

Viewing 2 replies - 1 through 2 (of 2 total)