「ver4/関数リファレンス/getRelatedPosts」の版間の差分
提供: baserCMS公式ガイド
Tomohiro Abe (トーク | 投稿記録) (ページの作成:「## 説明 同じタグの関連投稿を取得する ## 使い方 <syntaxhighlight lang="php"> $this->Blog->getRelatedPosts(); </syntaxhighlight> ## パラメータ *...」) |
細 (1版 : 関数リファレンス→ver4) |
(相違点なし)
|
2016年9月18日 (日) 17:47時点における版
[このコンテンツは内容調整中です]
目次
説明
同じタグの関連投稿を取得する
使い方
$this->Blog->getRelatedPosts();
パラメータ
- (array) $post ブログ記事
- (array) $options オプション(初期値 : array())
recursive
: 関連データを取得する場合の階層(初期値 : -1)limit
: 件数(初期値 : 5)order
: 並び順指定(初期値 : BlogPost.posts_date DESC)
戻り値
(array)