NExT Comment Loop
WordPress Gutenbergブロックプラグイン。固定ページに設置し、指定した投稿タイプのコメントをループ表示する。
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/atsushia/next-comment-loop/archive/refs/heads/main.zipWordPress Gutenberg ブロックプラグイン。固定ページに設置し、指定した投稿タイプのコメントをループ表示します。
機能
- コメントを投稿タイプ横断でループ表示
- 対象投稿タイプを複数選択可能
- ソート順(新しい順・古い順)と取得件数を設定可能
- 日時・投稿者名・コメント本文・関連投稿タイトルをインナーブロックで自由に配置
ブロック一覧
| ブロック名 | 説明 |
|---|---|
next/comment-loop |
コメントループ(親ブロック) |
next/comment-date |
コメント日時(フォーマット自由設定) |
next/comment-author |
投稿者ハンドル名 |
next/comment-content |
コメント本文 |
next/comment-post-title |
関連投稿タイトル(リンク有無切替) |
動作要件
- WordPress 6.4 以上
- PHP 8.0 以上
インストール
- このリポジトリを
wp-content/plugins/NExT-Comment-Loop/に配置 - WordPress 管理画面でプラグインを有効化
開発
npm install
npm run build
開発時のウォッチモード:
npm run start
使い方
- 任意の固定ページ(例: 掲示板ページ)にエディタで Comment Loop ブロックを追加
- サイドバーで対象の投稿タイプにチェック、ソート順・取得件数を設定
- インナーブロックとして Comment Date・Comment Author・Comment Content・Comment Post Title を好みの順で配置
- 保存するとフロントエンドにコメント一覧が表示される
ライセンス
GPL-2.0-or-later