is_front_page()

Sponsored Link

記事かページであるかどうか、表示しているサイトのフロントの場合です。メインブログのページが’設定>表示設定>フロントページの表示’が”最新の投稿”の設定、あるいは’設定>表示設定>フロントページの表示’が”固定ページ”と”フロントページ”の値が現在のページが表示された時にtrueを返します。注:このタグはバージョン2.5で追加されました。

Sponsored Link

原文(翻訳元)When it is the front of the site displayed, whether it is posts or a Page. Returns true when the main blog page is being displayed and the ‘Settings > Reading ->Front page displays’ is set to “Your latest posts”, or when ‘Settings > Reading ->Front page displays’ is set to “A static page” and the “Front Page” value is the current Page being displayed. Note: this tag was added at Version 2.5.

Sponsored Link