WordPressユーザーのbaserCMS覚え書き


meta name="keywords" の content 文字列を設定する

WordPress

該当する関数(テンプレートタグ)はありません。プラグインを使うか、functions.php にユーザー定義関数を設定して実装します。

プラグインの例

baserCMS(3系)

$this->BcBaser->setKeywords( $keywords )

[setKeywords] 説明文を設定する|baserCMS 3系関数リファレンス

メモ

$this->BcBaser->metaKeywords() の出力内容を設定する関数なので、テンプレート内では

<?php $this->BcBaser->setKeywords( 'foo,bar,baz' ) ?>
<?php $this->BcBaser->metaKeywords() ?>

のような順序で記述する必要があります。