My Favorites

説明

ユーザーのお気に入りの投稿を保存してリストします。
このプラグインはシンプルです。インストールするだけでユーザーのお気に入りの投稿を保存し、ショートコードだけで好きな場所に表示できます。
ログインユーザーのデータはユーザーメタに保存されます。他のユーザーのデータはWebストレージ (localStorage) に保存されます。

使用法

  • ショートコード: [ccc_my_favorite_select_button post_id="" style=""]
  • ショートコード: [ccc_my_favorite_list_menu slug="" text="" style=""]
  • ショートコード: [ccc_my_favorite_list_results class="" style=""]

リスト表示用のショートコード ([ccc_my_favorite_list_results]) があるページの場合。

「さらに読み込む」は「posts_per_page」で表示されます。
ユーザーのお気に入り投稿数が「posts_per_page」より多い場合に表示されます。

  • ショートコード: [ccc_my_favorite_list_results posts_per_page="10"] デフォルトは 100 件の投稿です。

投稿の「抜粋」を表示できます。
この値は文字の長さです
必要ない場合は「抜粋なし」または「0」を使用してください。

  • ショートコード: [ccc_my_favorite_list_results excerpt="30"]

必要に応じて、リスト ビューのコードを自分で変更することもできます。

  • ショートコード: [ccc_my_favorite_list_custom_template style=""]

カスタム リスト ビューのショートコード ([ccc_my_favorite_list_custom_template]) を含むページの場合。
リスト ビュー用の関数 (function ccc_my_favorite_list_custom_template( $my_favorite_post_id ) { }) を your-theme/functions.php に追加します。
$my_favorite_post_id is array.
style="none" excludes the default CSS for the list.

詳しい使用方法は現在準備中です。

詳細を見る

このプラグインはGitHub で開発されています。

インストール

  1. my-favorites/wp-content/plugins/ ディレクトリにアップロードします。
  2. WordPress の「プラグイン」メニューからプラグインを有効にします。
  3. ショートコードを使用して、お気に入りの投稿リスト、保存用のアイコン、リストへのリンクのメニューを表示します。

評価

2025年10月12日
Really easy to use and the simple love heart shape to add favourites looks really good on posts. I've tried all the favourites plugins and this one is by far the best.
2023年5月28日
Thank you for this amazing plugin. It still works like a charm! Is there a place where I can donate?
2023年2月21日
Since it says "untested" with my theme, I tried it out and I'm happy to report so far it looks like it works with my theme. I use Manta Serious Theme. Thanks. This added exactly what I needed. Update: One issue with my theme I found , is that it seems to only store the data in the Web Storage. I searched and found none being stored in my database. Not sure why that'd happen though.
2022年11月16日
重宝しております。 シンプルで使いやすい! とても魅力的なプラグインですので、今後は有料版を検討するのもありかと思います。
15件のレビューをすべて表示

貢献者と開発者

My Favorites はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“My Favorites” は5ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“My Favorites” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.4.4

セキュリティ修正: ショートコード属性におけるストアドXSS脆弱性 (CVE-2024-37114) 。詳細は issue #8 をご覧ください。

GitHub のリリースノートをご覧ください。