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.
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.
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.
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.
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.
Resource
Add to favorites