WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
  • Deals
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» WordPress Plugins» How to Allow Users to Add Favorite Posts in WordPress

How to Allow Users to Add Favorite Posts in WordPress

Last updated on March 9th, 2017 by Editorial Staff
183 Shares
Share
Tweet
Share
Pin
Special WordPress Hosting offer for WPBeginner Readers
How to Allow Users to Add Favorite Posts in WordPress

Do you want to allow users to add favorite posts in WordPress? Allowing users to add favorite posts offers another way for them to engage with your content. In this article, we will show you how to easily allow users to add favorite posts in WordPress.

How to Allow Users to Add Favorite Posts in WordPress

Why Add Favorite Posts in WordPress?

We are often asked by our users about how to decrease bounce rate and boost user engagement on their WordPress blogs.

When most beginners start a WordPress blog, they try to get more comments as a way to boost user engagement.

However, most users on your site do not leave comment. This can be easily solved by adding other interactions that do not require much effort.

Your users will be more likely to click on a button than writing a comment. Adding post ratings, like buttons, or add to favorite button allows you to offer effortless interactions on your site.

Allowing users to add favorite posts, helps registered users revisit their favorite posts. It will also help you understand what kind of content users like on your site.

You can then show new users what others like the most on your site and get them engaged with your most favorited content.

Having said that, let’s see how to easily allow users to add favorite posts on your WordPress blog.

Allow Users to Add Favorite Posts in WordPress

First thing you need to do is install and activate the WP Favorite Posts plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » WP Favorite Posts to configure plugin settings.

WP Favorite Posts settings

First option on the settings page is to enable ‘Add to favorite’ option for registered users only. You need to leave this unchecked if you want all visitors to see the ‘Add to favorite’ button.

Next, you need to choose where to show the ‘add to favorite’ link. The plugin can automatically show it before or after the post content. Advanced users can also choose custom method and use <?php wpfp_link() ?> template tag inside WordPress theme files.

Now you need to choose the image icon you want to show next to ‘Add to favorite’ link. The plugin comes with a few images that you can use. You can also upload your own image or don’t show any image at all.

After that you can choose the number of posts you would like to show on your favorite posts page. The default option is 20, you can change that if you want.

Lastly, you can enable or disable statistics. You will need to keep it enabled if you want to show most favorited posts in the sidebar widget.

Don’t forget to click on the ‘Update Options’ button to store your settings.

You can now visit any single post on your website and you will see the Add to Favorite link.

Add to favorite link with image icon on a WordPress post

Showing Most Favorited Posts in WordPress

You may want to show your most favorited posts in your blog’s sidebar. Here is how you would do that.

Head over to Appearance » Widgets page. Under the list of available widgets you will notice ‘Most Favorited Posts’ widget. You will need to drag and drop this widget to a sidebar. If you need help adding widget, then check out our guide on how to add and use widgets in WordPress.

Adding most favorited posts widget to a sidebar

You can select the number of posts you want to show in the widget. Don’t forget to click on the save button to store your widget settings.

You can now visit your website to see the most favorited posts in your blog’s sidebar.

Most favorited posts

Showing a User’s Favorite Posts in WordPress

This plugin stores favorite posts for non-registered users in cookies. For registered users, it saves their favorite posts in your WordPress database.

Here is how you can show each user their favorite posts on your site.

Head over to Appearane » Widgets page and add ‘Users Favorite Posts’ widget to a sidebar.

User's favorite posts widget

You can select the number of posts you want to show in the widget. Don’t forget to click on the save button to store your widget settings.

This is how it looked on our demo site:

User's favorite posts shown in sidebar widget

You can also show user’s favorite posts in a WordPress post, page, or text widget using the [wp-favorite-posts] shortcode. This is particularly helpful if you want to create a separate page where users can see all their favorite posts.

We hope this article helped you learn how to allow users to add favorite posts in WordPress. You may also want to see our complete step by step WordPress SEO guide for beginners.

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.

183 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

35 Comments

Leave a Reply
  1. Fede Bcc says:
    Mar 31, 2018 at 2:36 pm

    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

    Reply
  2. Reza says:
    Nov 23, 2017 at 5:54 am

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

    remove not work at all!

    Reply
  3. daf says:
    Aug 25, 2017 at 2:47 am

    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 .??

    Reply
  4. Huzan says:
    Jun 21, 2017 at 7:56 am

    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.

    Reply
  5. parteet says:
    Mar 10, 2017 at 7:58 am

    Can you tell me about the WordPress site Designing. I wanna design my site

    Reply
  6. Matus says:
    Mar 9, 2017 at 10:21 am

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

    Reply
  7. WPBeginner Staff says:
    Oct 23, 2014 at 11:31 pm

    It can, but you will have to make some changes to the plugin which we don’t recommend/

    Reply
  8. john says:
    Oct 22, 2014 at 2:31 pm

    Hello, is that the plugin works with pages ?

    Reply
  9. jimario says:
    Feb 23, 2014 at 12:10 pm

    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?

    Reply
    • WPBeginner Support says:
      Feb 23, 2014 at 5:39 pm

      No, we think you are looking for something quite different this method will probably not work for that.

      Reply
      • Seth says:
        Dec 22, 2015 at 11:49 am

        What plugin do you recommend to get this feature? I tried “GD MyList” and “Favorites” plugins and neither gives the option to see other users lists.

        Reply
  10. jimario says:
    Feb 22, 2014 at 3:18 pm

    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?

    Reply
  11. ALEXANDRA says:
    Oct 27, 2013 at 12:03 pm

    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?

    Reply
    • WPBeginner Support says:
      Oct 27, 2013 at 12:59 pm

      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.

      Reply
  12. Ayush says:
    Sep 7, 2013 at 5:20 pm

    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 ?

    Reply
  13. Jane says:
    May 20, 2013 at 10:22 pm

    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?)

    Reply
    • Editorial Staff says:
      May 22, 2013 at 7:47 am

      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.

      Reply
      • Jane says:
        May 22, 2013 at 8:00 am

        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.. :)

        Reply
    • Cory says:
      May 22, 2013 at 11:04 am

      I was able to show the content of my post by adding the_content to the template.

      Reply
  14. Cory says:
    Apr 21, 2013 at 12:31 pm

    If you’re having issues with being able to favorite a post and it never shows in your favorites page, try this solution: http://wordpress.org/support/topic/custom-post-type-24?replies=10

    worked perfectly for me!

    Reply
  15. kenny says:
    Apr 13, 2013 at 11:25 pm

    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.

    Reply
  16. Abigail Gorton says:
    Feb 21, 2013 at 1:21 pm

    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.

    Reply
  17. Ubaidullah Butt says:
    Feb 11, 2013 at 3:40 am

    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.

    Reply
    • Editorial Staff says:
      Feb 21, 2013 at 10:58 am

      Did you favorite any post? If not, then do that first and the page will update itself.

      Reply
      • Tito says:
        Apr 15, 2013 at 8:26 pm

        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

        Reply
        • Cory says:
          Apr 21, 2013 at 12:11 pm

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

    • Data says:
      Jul 23, 2014 at 12:08 pm

      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’);

      Reply
  18. Milan says:
    Jan 25, 2013 at 2:40 am

    Thanks a lot. The post is very helpful.

    Reply
  19. Guillermo Santiago says:
    Sep 8, 2012 at 12:33 am

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

    Reply
    • Editorial Staff says:
      Sep 8, 2012 at 9:25 am

      The article was written in March. We have the plugin running on sites using 3.4.2 and it is working. Perhaps you should do your homework.

      Reply
  20. Pranjal says:
    Jun 11, 2012 at 1:29 pm

    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 :(

    Reply
  21. Jared says:
    Mar 30, 2012 at 1:28 am

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

    Reply
  22. Kyle Suss says:
    Mar 29, 2012 at 6:01 pm

    Any idea if this works for custom post types?

    Reply
    • wpbeginner says:
      Apr 2, 2012 at 8:18 am

       @Kyle Suss Not sure if it does, but if it doesn’t, it wouldn’t be very hard to make that customization.

      Reply
  23. frachmadin says:
    Mar 28, 2012 at 12:47 pm

    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.

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
SeedProd WordPress Coming Soon Page Plugin
SeedProd
Jump start your website with viral coming soon pages. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2019 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2019)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2019)
    • SiteGround Reviews from 1032 Users & Our Experts (2019)
    • Bluehost Review from Real Users + Performance Stats (2019)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Start a Podcast with WordPress (Step by Step)
    • How to Choose the Best Domain Name (8 Tips and Tools)
    • How to Setup a Professional Email Address with Google Apps and Gmail
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2019 – Step by Step Guide
Deals & Coupons (view all)
Dreamhost
DreamHost Coupon
Get 40% OFF on DreamHost and get a Free Domain.
Elegant Themes
Elegant Themes Deal
Get all 87 amazingly beautiful WordPress themes by Elegant Themes for only $69. That is like $0.79 per theme!
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • Awesome Motive

Copyright © 2009 - 2019 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.