add_shortcode( 'hidetext', 'my_hidetext_shortcode' );
function my_hidetext_shortcode( $atts, $content="" ) {
if( is_single() )
return $content;
else
return;
}
Docs: add_shortcode()
, is_single()
Solution is untested.
add_shortcode( 'hidetext', 'my_hidetext_shortcode' );
function my_hidetext_shortcode( $atts, $content="" ) {
if( is_single() )
return $content;
else
return;
}
Docs: add_shortcode()
, is_single()
Solution is untested.