You can easily enable a good feature that simply allows your website visitors to add their favorite posts. The WP Favorite Posts is a free WordPress plugin that uses cookies for saving data and hence the unregistered users can favorite any post they like.
How WP Favorite Posts Works?
- If a user logged in then favorites data will saved in database instead of cookies.
- If user not logged in data will saved in cookies.
You can choose “only registered users can favorite a post” option, if you want. Also there is a widget named “Most Favorited Posts”. And you can use this template tag for listing most favorited posts;
In-case if you are using WP Super Cache you must add page (which you show favorites) URI to “Accepted Filenames & Rejected URIs”.
How To Use WP Favorite Posts Plugin ?
- Install and activate WP Favorite Posts.
- Place
<?php if (function_exists('wpfp_link')) { wpfp_link(); } ?>
in your single.php or page.php template file. Then favorite this post link will appear in all posts. - OR if you DO NOT want the favorite link to appear in every post/page, DO NOT use the code above. Just type in [wpfp-link] into the selected post/page content and it will embed the print link into that post/page only.
- Create a page e.g. “Your Favorites” and insert
{{wp-favorite-posts}}
text into content section. This page will contain users favorite posts. That’s all.