post_permalink

Sponsored Link

カスタム投稿タイプのパーマリンクを返します。

Continue reading

is_page_template()

テンプレートページが使われている場合

バージョン2.5以降では、ページテンプレート内出ないにしろ、もし特定のページテンプレートが使用されていた場合にしろ、決定するために判断します。

原文(翻訳元)Beginning with Version 2.5 this allows you to determine whether or not you are in a page template or if a specific page template is being used.

ページテンプレートが使われていますか?

Continue reading

is_tag()

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

原文⇒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.

パーマリンクタグ

投稿された記事へのリンクタグ関連のテンプレートタグ一覧です。

Page TOP

Sponsored Link