Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

カテゴリー:WordPressでユーザーにお気に入り投稿を許可する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressでユーザーが投稿をお気に入りとして保存できるようにしたいですか?

この機能を追加することで、メンバーやユーザーはお気に入りの投稿や後で読みたいコンテンツをブックマークすることができます。

この投稿では、ブックマークボタンを作成することで、WordPressでユーザーがお気に入りの投稿を追加できるようにする方法を紹介します。

How to allow users to add favorite posts in WordPress

なぜWordPressでユーザーによるお気に入り投稿を許可するのか?

新規訪問者のトラフィックを増やすことは重要ですが、それと同じくらい重要なのは、その訪問者にサイトに滞在してもらい、コンテンツに興味を持ってもらい、さらに読みたいと思ってもらうことです。

一般的なサイトでは、訪問者の70%以上が二度と戻ってきません。だからこそ、賢いサイトオーナーはメールマガジンを始めたり、その他の戦術を駆使してリピーターを増やすのです。

会員制サイトや オンラインショップなど、ユーザー登録が可能なサイトを運営している場合、ユーザーに再訪問してもらうには、ブログ投稿をお気に入りに登録してもらうのが良い方法です。

ユーザーがお気に入りのコンテンツをリストに残すことができれば、サイトを何度も訪れ、メンバーシップを更新する理由が生まれます。

さらに、WordPressサイトで最も人気のある投稿をすべての訪問者に表示することができます。

このことを念頭に置いて、WordPressブログでユーザーがお気に入り投稿を追加できるようにする方法を見てみましょう。

カテゴリー:WordPressでユーザーにお気に入り投稿を許可する方法

訪問者が投稿に「いいね!」をする前に、あなたのサイトのアカウントを作成できなければなりません。

もしまだこの設定をしていないのであれば、いくつかの方法があります。会員限定のプレミアムコンテンツを作成してサイトを収益化したい場合は、WordPressの会員制サイトを作成することができます。または、初期設定のユーザー権限グループでWordPressサイトにユーザー登録を許可することもできます。

ユーザー登録を有効化したら、サイトに「お気に入り」ボタンを追加しましょう。

ブックマーク機能を追加する最も簡単な方法は、CBX Bookmark & Favoriteプラグインを使うことです。このプラグインを使えば、投稿、ページ、カスタム投稿タイプにブックマークボタンを追加することができます。

The CBX bookmarking plugin

まず始めに、CBX Bookmark & Favoriteプラグインをインストールし、有効化してください。WordPressプラグインのインストール方法はこちらをご覧ください。

プラグインを有効化したら、サイトにブックマークボタンを簡単に追加できます。

CBX Bookmark and Favoriteプラグインには、特定のページや投稿にブックマークボタンを追加できるブロックがあります。これは、メンバーがお気に入り登録できるコンテンツを正確にコントロールしたい場合に便利なので、投稿の最後の方でブロックの方法を説明します。

しかし、すでに多くのコンテンツを公開している場合は特に、個別ページや投稿にボタンを追加するのは多くの時間と労力を要する。

そのことを念頭に置いて、すべてのページ、投稿、またはページと投稿にブックマークボタンを自動的に追加するようにプラグインを設定するとよいでしょう。

ブックマークボタンを自動的に追加するには、CBXブックマーク ” 設定にアクセスしてください。

The CBX Bookmark & Favorite plugin settings

この画面で、投稿タイプ選択セクションまでスクロールします。

フィールドをクリックすると、ブックマークボタンを追加できるさまざまなコンテンツをすべて表示するドロップダウンが開きます。

Automatically add the bookmark button to pages and posts

ボタンを追加したいコンテンツタイプをクリックするだけです。

以下の画像では、メンバーが任意のページや投稿をお気に入り登録できるようにしています。

The CBX plugin settings page

それができたら、プラグインの自動統合機能を有効化する必要があります。これにより、「投稿タイプ選択」フィールドの異なるコンテンツタイプにブックマークボタンが追加されます。

これを行うには、「投稿タイプ自動統合」の次のフィールドをクリックします。その後、ブックマークボタンを追加したい異なるコンテンツタイプをすべてクリックして選択することができます。

Automatically adding a favorites button to your WordPress website

次に、ブックマークボタンをサイトのコンテンツの上に表示するか、コンテンツの下に表示するかを選択します。

以下の画像では、ブックマークボタンが投稿コンテンツの上に表示された場合の例を見ることができます。

A bookmark button above the post content

これにより、ユーザーは後で読む予定の投稿をクイックブックマークに簡単に登録できる。

もう一つのオプションは、投稿コンテンツの下にブックマークボタンを表示することです。

投稿の最後に到達した訪問者は、通常、投稿コンテンツの一部またはすべてを読んでいます。もしそのコンテンツが面白かったのであれば、このボタンを使って投稿をお気に入りに登録し、後で簡単に再読することができます。

ボタンを投稿コンテンツの前に追加するか後に追加するかを決めたら、「自動統合」ドロップダウンを開きます。これで、「コンテンツの前」か「コンテンツの後」のどちらかをクリックできます。

Changing where the favorite button appears on WordPress

このページでは、ブックマークボタンに使用するラベルを変更したり、アーカイブページにボタンを追加したり、その他の重要な変更を行うことができます。

これらの設定はすべてわかりやすいので、時間をかけて見てみるといいでしょう。変更に満足したら、新しいブックマークボタンを公開しましょう。

そのためには、「設定を保存」ボタンをクリックするだけです。これで、サイトにアクセスすると、ページや投稿日に新しいブックマークボタンが表示されます。

WordPressの投稿やページにお気に入りボタンを追加する方法

もう一つのオプションは、ブロックエディターを使って特定のページ、投稿、カスタム投稿タイプにブックマークボタンを追加することです。

特に、ブックマークボタンを自動的に追加するのに比べると、多くの時間がかかります。しかし、サイト上のどこにボタンを表示させるかを正確にコントロールすることができます。例えば、投稿コンテンツの真ん中に「お気に入り」ボタンを作ることができます。

ブロックを使ってブックマークボタンを作成するには、ボタンを追加したいページや投稿を開くだけです。そして、「+」アイコンをクリックしてください。

表示されたポップアップで、’CBX Bookmark Button’とタイプして正しいブロックを見つける。

Adding a bookmark block to WordPress

その後、「CBXブックマークボタン」をクリックするだけで、あなたのページや投稿にブロックが追加されます。CBXブロックにはいくつか種類がありますので、本当に〜してもよいですか?

初期設定では、このブロックはブックマークボタンとページや投稿をお気に入り登録したユーザー数を表示します。

人気があるような投稿は読まれやすいので、この数字は社会的証明になる。

しかし、あなたのサイトが新しい場合、あなたの投稿をお気に入り登録する人はほとんどいないかもしれません。ブックマークボタンに表示される数が非常に少ないと、不人気だと思われる可能性があります。

このため、より多くの人々があなたのサイトのコンテンツに関心を持つようになるまで、この数字は非表示にしたほうがいいかもしれない。

これを行うには、’CBX Bookmark Button’ブロックをクリックしてください。そして右側のサイドバーで’Show Count’を青(有効化)から灰色(無効化)に切り替えてください。

Hiding the total favorite count

これで通常通りページを更新、公開することができる。

そうすると、あなたのサイトにボタンが表示されます。

A favorite, or bookmark button in WordPress

WordPressサイトにお気に入りカテゴリーリストを追加する方法

ユーザーは、ブックマークしたコンテンツをさまざまなカテゴリーに追加して整理することができる。 これにより、ユーザーが何十ものページや投稿をブックマークしていたとしても、特定の投稿を再訪しやすくなる。

例えば、WooCommerceを使用してオンラインストアを作成した場合、カスタマイザーはカテゴリーを使用して’パーティー用品’や’休日の服’など複数のウィッシュリストを作成することができます。

ユーザーは新規カテゴリーを作成するか、既存のカテゴリーにページを追加することができます。

Allowing users to add favorite posts in WordPress

CBX Bookmark & Favoriteプラグインには、ユーザーのカテゴリーをサイトに表示するための2つの特別なブロックがあります。

CBXブックマークカテゴリー」ブロックは、訪問者が作成したすべての異なるカテゴリーを表示します。ユーザーはカテゴリーをクリックすることで、そのカテゴリー内でブックマークした投稿をすべて見ることができます。

A list of favorited posts in WordPress

このブロックはどのページや投稿にも追加できますが、見つけやすいようにしておくとよいでしょう。このため、マイブックマークページを新規作成し、ナビゲーションメニューに追加することもできます。

もう一つのオプションは、会員ページに「CBXブックマークカテゴリー」ブロックを追加することです。会員制サイトやオンラインストアの運営にMemberPressを使用している場合、MemberPressは自動的にマイページを作成します。

The MemberPress My Account page

このマイページに「CBXブックマークカテゴリー」ブロックを追加することができます。

こうすることで、メンバーはお気に入りした投稿を簡単に再訪することができます。

A MemberPress page showing account categories

CBX Bookmarkカテゴリー」ブロックをページや投稿に追加するには、「+」ボタンをクリックしてください。

そして「CBXブックマークカテゴリー」と入力し、表示されたら右のブロックをクリックします。

The CBX Bookmark Categories block

あとは通常通りWordPressページを保存または更新するだけです。

もう一つのオプションは、ユーザーのブックマークした投稿をリストとして表示する設定です。これを行うには、’+’ボタンをクリックし、’CBX My Bookmarked Posts’を検索します。

Adding a 'favorites' block to your WordPress website

初期設定では、「CBX My Bookmarked Posts」ブロックには、訪問者がお気に入りとしてマークした投稿が10件表示されます。

投稿数を増やしたり減らしたりするには、投稿エディターで’CBX My Bookmarked Posts’ブロックをクリックしてください。投稿数’フィールドに新しい数字を入力することができます。

Showing a different number of favorite WordPress posts

初期設定は「降順」で、最近お気に入りに登録された投稿が一番上に表示されます。

最近ブックマークした投稿をリストの一番下に表示したいですか?順序」ドロップダウンを開き、「昇順」をクリックするだけです。

Changing the order of the bookmarked WordPress posts

さらに、このブロックは初期設定ですべての投稿タイプにブックマークされたコンテンツを表示します。

ページやメディアなど、特定の投稿タイプのブックマークコンテンツを表示することもできます。これを行うには、「投稿タイプ」セクションを見つけ、表示したいコンテンツのタイプをクリックするだけです。

Showing favorite posts from a specific bookmark category

ブロックの設定に満足したら、ページを公開するか更新する。

WordPressサイトで最もよくブックマークされる投稿を表示する方法

FOMOとは、他の人が勧めているもの、買っているもの、使っているもの、読んでいるものを試す傾向が強いことを意味する。

このことを念頭に置いて、あなたのサイトで最もブックマークされているページのリストを表示するとよいでしょう。

そうすることで、ユーザーはなぜこのコンテンツがコミュニティの他のメンバーに人気があるのかを知りたくなり、ページビューを増やすことができます。例えば、多くのニュースアグリゲーターサイトには、「最も人気のあるストーリー」セクションがあります。

また、あなたのサイトが多くの興味深いコンテンツを持つ活発なコミュニティであることを示すことで、訪問者にメンバーになってもらうこともできます。

あなたのサイトにリストを追加するには、任意のページ、投稿、またはウィジェット対応エリアを開くだけです。次に、「+」ボタンをクリックし、「CBX Most Bookmarked Posts」と投稿タイプしてください。

クリックすると、サイトにブロックが追加されます。

Creating a list of your most popular WordPress posts

ブロックを追加した後は、上記と同じ手順でカスタマイズできる。

リストの「期間」も変更できる。例えば、最も頻繁にブックマークされた投稿を直近1日分、あるいは1年分表示することもできる。

通常、短い期間を選択すると、リストの変更頻度が高くなります。これは、メンバーが最新のコンテンツをチェックするためにサイトに戻ってきてもらうのに最適な方法です。

時間枠を選択するには、「期間」ドロップダウンメニューを開き、投稿を引き出したい期間をクリックするだけです。

Displaying your most frequently favorited WordPress posts

ブロックの設定に満足したら、投稿を公開するか更新して変更を保存するのを忘れないでください。

あなたのサイトにアクセスすると、最も頻繁にブックマークされたコンテンツのリストが表示されます。

視聴者のお気に入り投稿を監視する方法

サイトにブックマークボタンを追加したら、会員がそのボタンをどのように使っているかをモニターするのが賢明です。

これは、ユーザーのエンゲージメントが最も高いコンテンツを特定するのに役立ちます。そして、似たような商品を探し、あなたのアフィリエイトサイトに追加することで、さらに多くのエンゲージメントと売上を獲得することができます。

まずはじめに、CBXブックマーク ” ブックマークカテゴリーにアクセスすると、メンバーが作成したすべてのカテゴリーのリストを見ることができます。

The Bookmark Category Manager

多くの人が同じようなカテゴリーを使用している場合、このタイプのコンテンツがユーザーに人気があることを示唆しています。このタイプのコンテンツをもっと作成することで、ブログのトラフィックを増やし、メンバーの関心を引きつけることができるかもしれません。

また、CBXブックマーク ” ユーザーブックマークから、ユーザーがブックマークした投稿をすべて見ることができます。

Monitoring your audience's bookmarks and favoriting

同じ投稿を多くの人が気に入っているなら、このタイプのコンテンツをもっと作るべきだ。

この投稿が、WordPressでユーザーがお気に入りの投稿を追加できるようにする方法を学ぶのにお役に立てば幸いです。お問い合わせフォームの作り方やサイトに最適なAIチャットボットのガイドも参考にしてみてください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

38件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Globasource says

    Thanks a lot for sharing this blog. Really nice and fresh content. All the information is helpful for us.

  3. Fede Bcc says

    Hello,

    please, is the “WP Favorite Posts” plugin still updated and supported? I read comments from various people that it is not being updated anymore. If that’s the case, could you please suggest any alternative plugin for user favourite/bookmarking?

    Many thanks!

    Kind regards,

    Fede

  4. Reza says

    I have a big problem with it!
    when I deselect a post after refresh the page, it come back!

    remove not work at all!

  5. daf says

    Hi,
    I am using this wp-favorite post plugin, and it is finely working. I used the shortcode to show the favorited post into a seperate page. I want to show the count of favorited post in that perticular page.
    Is there any method to get the count of Favorited post .??

  6. Huzan says

    Hi,
    I would like to know if there is a way where in the homepage of my website can be customized based on a users likes/dislikes. The categories he likes their posts should come right at the top.

    Looking for a solution.

  7. Matus says

    Could you please make a tutorial how to correctly add a hreflang to WordPress?
    Hope you’ll reconsider my request.

  8. jimario says

    Will this also work with user profiles. For example, i want my site to allow some users to be able to view a list of other viewers profile pages. On those pages, they won’t be able to edit the other users’ profiles, but they will be able to favorite them–at least that’s what I’m trying to accomplish. Will your method work?

  9. jimario says

    Is it possible to have user profiles also saved as favorites? If I give access to users to view profiles of other users, I’d like those users to be able to Favorite any other user profile that they view using this plugin. is this possible using the method you described in your article?

  10. ALEXANDRA says

    Hi, is there any way to create few sites for users, for example:
    – Add to favorites,
    -Add to currently reading,
    -Add to watchlist etc
    and create specific pages for all this options?

    • WPBeginner Support says

      Yes it is possible to create profile pages with tabs where users can see their favorites, currently reading, watchlist, etc. However, if you want to do that we would recommend using a membership plugin.

      管理者

  11. Ayush says

    Nice plugin and tip brother, I installed it and worked super-fine.

    And i was wondering if there’s a way I can show what posts a particular user favorites in user’s profile, I mean a user can indeed see what posts he/she likes but is there a way a user can see what posts other user favorites ?

  12. Jane says

    i just installed it and it worked fine :)

    I have one question. Is it possible when you show all your favorites that you get image of the article/item/blog you liked also? Orelse you have to remember it by the name.

    Then i would be sooo happy :D

    (i am newbie in wordpress, so i am not a geek on codes.. i hope its possible to install something so it just work?)

    • Editorial Staff says

      Yes it is possible, but you would have to edit a few codes. wpfp-page-template.php << Look at this file in the plugin's folder. You would basically have to recreate this query in your custom page template. Sorry, it sounds a bit overwhelming, but that is what is needed.

      管理者

      • Jane says

        Ok – thanks for the reply. I have been looking for a nice theme where its already done, but with no luck. I am not good enough myself, when it comes to make coding from scratz.. :)

  13. kenny says

    This plugin is not functioning at all I installed it and activated it but my server respond with fatal error whoever is a developer of this plugin should get rid of it and stop putting low grades on WordPress awsome plugins.

  14. Abigail Gorton says

    I think this is one of thoie plugins we could politely call ‘delicate’. It has an awesome features list and when it works it is just great but it is obviously NOT working on every theme / relaease / server and it is not playing nicely with other plugins.

    I really want this functionality. When I first installed it, it was up and running immmediately. When I tried to configure it a bit, it broke. When I uninstalled it, I found that the uninstall was not clean and complete – it was no longer showing in my admin panel, or through standard FTP, but when I did ‘show hidden files’ on FTP it showed up. This is so wrong – shoulda uninstalled when it claimed to form admin and should not be hidden.

    So I deleted the hidden files but when I reinstalled the plugin, some of my settings were still as configured which suggest I was not able to fully remove it form my server. So wrong.

    I have tried deleting and reinstalling multiple times and cannot get it back to clean.

    So I am one of the 50% for whom it does not work, which is a shame as it looke pretty good for the 5 minutes it was up on my site.

  15. Ubaidullah Butt says

    When I used “{{wp-favorite-posts}}” for showing up all favorite posts on a page, There was nothing except “Clear Favorites” link. Can anybody help me with this. Thanks in advance.

      • Tito says

        Hi, I’m currently have this problem and yup I’ve favorited numerous posts and still nothing. Any ideas? The support forum is all but dead unfortunately :(

        Cheers

        • Cory says

          I have the same issue. Favorited a bunch of posts. they dont show in the favorites page. did you fix it?

    • Data says

      Hoping this will help someone else having this same issue – as mentioned below, you have to have posts favorited already for the page to display anything.

      If you have marked something as a favorite and it isn’t showing up, it is likely because you are favoriting a page or custom post type, not a post of type “post.”
      If you want to favorite “page” types, or any other custom post type (ex: recipes on a cooking site), then you’ll need to make a simple edit to the wpfp-page-template.php file.
      Around line 23 you should see a comment on supporting other post types (page, custom types, etc.).
      Uncomment this line: $qry[‘post_type’] = array(‘post’,’page’);
      That should do it for adding “page” to the types allowed to be favorited.
      If you have other custom types you can add them to that array, or in place of something else, like:
      $qry[‘post_type’] = array(‘recipe’,’page’);

  16. Guillermo Santiago says

    The WP Favorite Posts plugin Sucks. It is also deprecated and not functioning properly with wordpress 3.2 up. Do your homework.

  17. Pranjal says

    Though, it words good but that Gif loading image is continuously showing wherever, I had implemented. And also there’s no support from the developer of this plugin :(

  18. Jared says

    I also used this plugin for a client project a few months back and it worked just fine – despite the voting.

  19. frachmadin says

    Hi, thanks for this great post. I am currently using GD Star Rating plugin on my blog. Do both have the same or different functions? I am interested to try using the WP Favorite Posts plugin. Thank you.

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。