WordPressユーザーのbaserCMS覚え書き


コンテンツのタイトルを出力する

WordPress

the_title()

テンプレートタグ/the title - WordPress Codex 日本語版

baserCMS(2系)

$bcBaser->contentsTitle()

[contentsTitle] コンテンツのタイトルを出力する|baserCMS 2系関数リファレンス

baserCMS(3系)

$this->BcBaser->contentsTitle()

[contentsTitle] コンテンツのタイトルを出力する|baserCMS 3系関数リファレンス

メモ

$this->BcBaser->title() と違い、$this->BcBaser->contentsTitle() ではコンテンツページのタイトルのみを文字列として出力します。そのため、適切なHTMLタグでマークアップをする必要があります。