シングルだったら

個別投稿ページ
<?php is_single() ?>

<?php else: //それ以外だったら?>
 
<?php endif; ?>

個別投稿のページ(または添付ファイルページ・カスタム投稿タイプの個別ページ)が表示されている場合。固定ページには適用されない。
is_single( '17' ) 

ID 17の投稿が表示されている場合。
is_single( 'Irish Stew' ) 

"Irish Stew" というタイトルの投稿が表示されている場合。
is_single( 'beef-stew' ) 

"beef-stew" という投稿スラッグの投稿が表示されている場合。
is_single( array( 17, 'beef-stew', 'Irish Stew' ) ) 

ID が 17、投稿スラッグが "beef-stew"、またはタイトルが "Irish Stew" のいずれかにあてはまる投稿が表示されている場合。
is_single( array( 17, 19, 1, 11 ) ) 

Returns true when the single post being displayed is either post ID 17, post ID 19, post ID 1, or post ID 11.
is_single( array( 'beef-stew', 'pea-soup', 'chili' ) ) 

Returns true when the single post being displayed is either the post_name "beef-stew", post_name "pea-soup" or post_name "chili".
is_single( array( 'Beef Stew', 'Pea Soup', 'Chili' ) ) 

Returns true when the single post being displayed is either the post_title "Beef Stew", post_title "Pea Soup" or post_title "Chili".
注: この関数は投稿 ID、投稿タイトル、または投稿名を区別しません。投稿 ID が「17」の投稿をリクエストした場合、タイトルや投稿スラッグが「17」の投稿が表示されることがあります。