Hiding title of selected post without plugins
If there is only 1 post showing up in your page, you could use the the_title() filter to hide the title. The simplest way would be this: function hide_my_title( $title, $id = null ) { if ( is_single( 2 ) ) { return ”; } return $title; } add_filter( ‘the_title’, ‘hide_my_title’, 10, 2 ); This … Read more