is_singular()

Sponsored Link

次のいずれかをtrueで返す時です:is_single(), is_page(), is_attachment()

Sponsored Link

原文(翻訳元)When any of the following return true: is_single(), is_page() or is_attachment().

is_singular(‘book’)

投稿タイプのbookを投稿で表示する時にtrueです。バージョン 3.0で導入されました。

原文(翻訳元)True when viewing a post of the post type book. Introduced with Version 3.0.

is_singular(array( ‘newspaper’, ‘book’ ))

投稿タイプnewspaperかbookの投稿を表示する時trueです。バージョン 3.0で導入されました。

原文(翻訳元)True when viewing a post of the post type newspaper or book. Introduced with Version 3.0.

Sponsored Link