is_tag()

Sponsored Link

タグアーカイブページを表示しているとき

原文⇒When any Tag archive page is being displayed.

is_tag(‘mild’)
‘mild’のスラッグがあるタグのためのアーカイブページを表示しているとき。

原文⇒When the archive page for tag with the slug of ‘mild’ is being displayed.

is_tag(array(‘sharp’,’mild’,’extreme’))
表示されるタグアーカイブが”sharp”、”mild”か”extreme”のどちらかのスラッグを持っているとき、Trueを返します。注意: 配列能力はバージョン2.5で加えられました。

また、is_archive() とTag Templatesを見てください。

原文⇒Returns true when the tag archive being displayed has a slug of either “sharp”, “mild”, or “extreme”. Note: the array ability was added at Version 2.5. See also is_archive() and Tag Templates.

Sponsored Link