- Favorite list is empty.
Your favorite posts saved to your browsers cookies. If you clear cookies also favorite posts will be deleted.
I made a plugin named as WP Favorite Posts. This plugin allows visitors to mark a post as favorite. There is no register requirement because this plugin saves data to cookies. Furthermore it can save data to database if user logged in. The user can see his/her favorite posts list from “Your Favorites” page which you created.
Don’t forget to donate
[paypal-donation purpose=”WP Favorite Posts” reference=”nxsn.com”]
Installation
It’s very easy;
- Download the WP Favorite Posts plugin.
- Unzip into your
/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
<?php if (function_exists('wpfp_link')) { wpfp_link(); } ?>
in your single.php or index.php template file. Then favorite this post link will appear in all posts. - Create a page e.g. “Your Favorites” and insert
text into content section. This page will contain users favorite posts.
- That’s it :)
Widget
And there is a widget and template tag for listing most favorited posts. You can go widgets page for using widget. Template tag’s usage;
<h2>Most Favorited Posts</h2>
<?php wpfp_list_most_favorited(10); ?>
The parameter for limiting post count of list. Default value is 5 posts.
Bugs & Appreciations
You can report bugs or write your appreciations by using comments of this post. Also you can see the source code and the ChangeLog. Thanks for using my plugin!
New Feature Request or Need Modification
If you have a feature request or need modification which is urgent for you, contact me. We can make a deal.
Did you like plugin ?
If you like my plugin, i’ll appreciate it if you buy me a coffe or beer! I would love if you write a blog post/tweet etc about my plugin.
[paypal-donation purpose=”WP Favorite Posts” reference=”nxsn.com”]
Some Details
Show Link In Post Content
You can show Add/Remove Favorites Link into post wherever you want with writing Add to favorites
into post content while HTML mode.
Change Template Of “Your Favorites” Page
(version 1.4) You can change “your favorites” page’s templates easily.
First copy wpfp-page-template.php from plugin’s directory to your theme’s directory. Then make template changes (add thumbnail image, make what you want).
If you make something wrong just delete or rename wpfp-page-template.php from your theme’s directory and page’s view will be turn back to basic view.
Who Uses This Plugin ? (DEMO)
http://www.nefisyemektarifleri.com/tarif-defterim/
http://www.hdvideoclip.com/my-playlist
Huseyin: Your plugin sounds like exactly what I’m looking for, but is there a demo site anywhere with it installed, so I can take a look?
This plugin is perfect! The only request I have is this:
It would be cool if we could specify a different image for removal of a favorite. ie: someone might want to use a gray image for “Remove from favorites” instead of using only one image for both adding & removal.
Compatibility with BuddyPress is a great idea. I also suggest compatibility with Custom POst Types. That way one can favorite certain books or movies and shows them separately in the user’s profile.
Is there a way to view another user’s favorited posts? something like http://website.com/favorite-posts/username ?
hello Huseyin, thanks for great plugins, i manage to “add to favorites”, did the plugins show the “favorites” at admin area. ie user-profile?
Hello,
It could be nice to put the changelog on the WP plugins depositary (and correct the link to the official plugin page). Thanks ! :-)
Does anyone know which is the code to display the count how much a post added to favorites? thx
Hi,
I upgraded the plugin and now the functionality has gone. I cannot add or remove a link. The favorite star disappeared. Checked the settings but nothing has changed.
So it should work. Any idea how this can be fixed … maybe a new install?
Hi Huseyin,
I managed to get the plugin working again.
@Jan, thanks for your feedback.
Hello, great plugin, thanks! :)
Please tell me how to set a limit of bookmarks for registered users? For example, no more than 20 favorites.
Sorry for the mistakes, I use a translator :)
Hi, this is a great plugin and I’ve found it really useful so far. But it there any way to customise the output of the wpfp_list_favorite_posts() query to, say, get more information about that post, like post-id or excerpt?
Thank you
Does this plugin work with custom post types? I have tried and “Add to favorites” text shows ok in the posts. But when I click on it, the page reloads in a small frame.
Very strange.
hey, I was trying to show only one random post from the user’s list of possible favorites, I already have my own code to check if the user is logged in, if they are, and they have posts in their favorites, i just want to display one (in a section i will be putting manual php code in) I was wondering what function/paramater i could use from this plug-in to do that. Essentially, I just want to know, if there is a way to use wpfp_list_favorite_posts() function with a parameter, to limit the number of results i get back, and possibly randomize the post id, if that user has more than one favorite post. Thanks.
Is the font size and type customizable with your plugin. The functionality is great, but the font does not match the rest of my scheme. Just curious what css tags I should be looking for to change this on the style sheet.
Hi,
How can I reset the module that all favorites are removed. As I changed some page names , so the favorites cannot be removed because the page does not exist anymore.
I already deactivated and removed the plugin and reinstalled it. But the links keep showing up.
Hello Huseyin, great an unique plugin. Is there a simple way to make it work to save archive, tag, and category pages, too? When I put the add/remove-code on one of these pages and click on the add-link it saves the first post on a page instead of the page itself. I guess it is because only $post_id is defined in wp-favorite-posts.php, right? So what to do to get your plugin work like I want?
Hi Huseyin,
The favorites have been saved in the database as I am always logged in. Unfortunately I cannot find the table where these entries must be. Can you help me with this?
Thanks
Hi Huseyin
Is it possible to put this into a custom field and what would be the parameter?
Thanks
Hi, is there any way that the favourite posts page could be designed so that the remove link appears apart from the post link. Like in a table or a div or something. Otherwise I love this plugin, keep up the good work.
Hi Huseyin,
After trail en error I discovered that some posts where not deleted completely and still remaining in the trash. After deleting them the favorites disappeared.
Hi,
I am trying to use your plugin on my site for pages. I have the “add favorite” link on the pages and when I save the pages it recognizes it both in the widget and the favorites page with the bullet mark but it doesn’t list the title and url of the page saved. Any guidance appreciated.
Hi,
There is any trick to make this plug in work fine with Qtranslate? Unfortunately right now every post name duplicated in a two language web shop :S
tanks,
Tomy
Excellent code.
Is there a way to display the Favorites on a Page view to be sorted by Title? I was trying to find the database call and modify the ORDER BY statement, but I could only find call for most favorited list.
Any suggestions would be appreciated.
Thanks!
Great plugin, does exactly what I was looking for… except…
I think it would be worthwhile to add a feature to show each user’s favorites on their profile page. I saw a few others here comment similarly… I hope you will implement this in future updates! This is a feature I really need.
Also, I’d like it if the favorites icons were greyed out for all but those items the user has already favorited.
Thanks for the great plugin:)
I installed this plugin on my site but I get a fatal error.
I get the same error as this person here
Hi,
I’m using this plugin with this theme:
http://wpclassipress.com/
Hello! Great plugin!
Can you please post php code to show us how to get favorites to show up as thumbnails?
Please :)
abi kendi favori listeme nerden bakabilirim
teşekkürler
Hi, is it possible to have the widget updated in Ajax style, when a post is added or removed from favorites?
Thanks allot
@Huseyin After click to add favorite, text switched to remove from favorite, but I must refresh the page to click on the remove link. Is the way it should be? If all ajax and dynamic, what could possibly cause this not working? Can you please help me solve this problem? Thank you.