- 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
Hi,
I couldn’t get this plugin to work by putting the code into single.php, so I’ve been adding the other code manually to each post. It loads that way, however it always reads ‘Favorite Loading’ before the ‘Add to favorites’ link. I’m pretty sure it’s not supposed to do that. Any suggestions?
@Elise you must insert
code after the_title() function. It should work.
Works great, thank you
Well, the plugin DOES work, mostly. It’s the before link image that doesn’t work for me. Instead of an image, the words Favorite Loading appear instead.
@Elise i checked the plugin but i couldn’t any problem like you said. Can you send me a link?
Great plugin, Huseyin!
One suggestion, for the “cookie_warning” message, that message should only be displayed for users who are not logged in or for users who are using cookies.
I wrapped the cookie_warning message in a !is_user_is_logged_in conditional, but if you can think of a better way to do this, that would be better!
-Ray
@Ray, thanks for suggestion. I added this feature to my TODO list.
Thanks for your great plugin.
If you add a post the page loads in the same window with Added to favorites! text.How can i make it that the added to favorites and removed from favorites open in a popup or new window? (target=”blank”)
Thank you again ;)
@Peet This processes are doing via AJAX normally. If ajax couldn’t work, you see only the “added to favorites” text.
Maybe i can add an option non-AJAX mode to future version.
Great plugin. I am hoping I can use it so users can “claim” a page (e.g. a favorite club) and have their avatar/profile link show up on the page of the specific club. Does this sound like something that is possible? Visitors would see which users enjoyed this club.
The other thing is probably a mod, but I’m looking to have the list of clubs be in a separate table to generate pages from a single template (i.e. no separate WP page for each club listing). Where in the files would I look for the db or function references to use a different table that the WP pages table.
Thanks in advance.
Hi Huseyin
looks like the ajax mode isn’t working on my site, please have a look: when adding a post to the favorites, the plugin returns a blank page with the success text
Any hint?
Thanks for this excellennt plugin!
Hi,
I have a few questions.
Firstly I want to make separate favourite lists, ie Favourite stores, favourite books etc.. Is it possible?
And also I would love to be able to create a small carousel/slider (maybe integrate with a plug in like WP Featured Content Slider) that shows images and the links for peoples favourites. It’s a lot to ask I know, and I am actually happy to pay to get this done as it would massively improve my site. Thanks so much in advance!
@ddgdaily, it isn’t possible to make separate favourite lists. It’s a hard feature to implement. If you want to pay for modifications contact me via contact form.
Hi Huseyin, the plugin works well!
Is there a way to show the number of people who like a post under the post title, for instance “x people like this post”?
@LC there isn’t a way for “x people like this post”? text. I saw a plugin which doing this. you can try it -> http://wordpress.org/extend/plugins/i-like-this/
hey Huseyin your plugin fits my needs perfectly. Everything works just fine, but I don’t know why the “Clear Favorites” function is no where to be found. Am I doing something wrong?
@Bryan You can see “clear favorites” text on your Favorites pages which you should create and insert
{{wp-favorite-posts}}
code into it.I’m using your “My Favorites” plugin on my site and the viewers love it. I’d like to find out who is actually using it and what their favorites are but don’t want to make this information public using the widget. Is there a way to check the stats?
@Steve Carter; Unfortunately there is only public statics for plugin for now. (most favorited posts)
Hello Huseyin,
I’m not sure if you still check this comments section but I am wondering if you could help me with something. I would like to have a widget that only displays the favorites posts of the user. I believe the way the widget works not is that it displays the most favorited posts as chosen by anyone who visits the site. Is this possible to do?
Your plugin is great and I plan on donating once I get my site up and running.
Any help you can provide me would be very much appreciated. Thank you!
@Elias yes it is possible to make. Please contact me for this.
How can I get the favorite image and the text to display on the same line? It’s almost like there is a break in there because the text appears to the side and underneath the image.
Okay, I managed to fix it by changing the attribute for vertical-align. Now what I need to know is why the add to favorites link is indented to the left and has a lot of extra spacing underneath. How can I fix both of those issues?
@RenFromPenn this problem is about your theme’s css codes. If you try my plugin with Default theme you will see that there isn’t any problem.
The previous problem is sorted out. It was a problem with the stylesheet for the theme and had nothing to do with this plugin.
On my favorites page, I would like to show images that link to the post instead of just printing out text links. Could you please tell me how to do that? I have thumbnails attached to each post, if that helps.
Is this plugin compatible with MU? I’d love to be able to save across my entire MU site.
Very nice plugin!
But my dream, is an additional option: storing data in the database…
In the next version?? :)
Nice Plugin. For my site I would users to be able to create and modify two separate “favorites” lists. So that a reader can click on two different “add to favorites links on one post which I can use to display two different lists on their miy favorites page.
Does anyone have an idea on how to best duplicate this plugin?
I dont understand this
5. Create a page e.g. “Your Favorites” and insert text into content section. This page will contain users favorite posts.
What should i insert what text??? Do i insert a code into the page or what? Please somebody explain :D
got it to work thx for plugin
Great plugin Huseyin! Let me make a suggestion if you are interested in a donation or looking to make some extra money. I am looking for a trip planner plugin that allows a user to create a “My Trip” page complete with an option to get directions right on my website. The exact example I am looking for is the Trip Planner located at http://cityvisitor.com Judging by your plugin, I believe you have the skills to make this happen. Please email me and let me know
Hello, I try to use this plugin on my blog (2.8.6) but I have a big problem when I active it. All my header shifts and curiously iformations concerning AddToAny are displayed, while AddToAny is not installed on my blog :/
Many thanks for your reply.
Also, I think there is a problem with code in the wp-favorite-posts.php file (line 311, the <?php is not closed).
How can I get the favorite list to display in an alphabetical order?
@Sterf alphabetical order option isn’t available for now. maybe with next versions…
Thanks a million for this plugin. I started using it on an accommodation booking site and people can now list their favourite accommodations as a reference.
I have 2 questions. Is it at all possible for future versions to consider using the typical wordpress shortcode instead of the the current code used to insert it into a page.
Secondly, I’m and trying to figure out a way of posting the results of the favourites list into a Contact form so users can send the site owner a list of their favourite posts.
That would take this plugin from great to even greater.
Thanks, if I find a solution I’ll let you know. Your advice would be appreciated though.
@nomadone; yes, you’re right. wordpress shortcode will be better.
i can’t find an answer for your second problem, i’m sorry :/
I think it’s a good idea to add simple pagination to manage favorites page… It doesn’t look good when there are too many posts added in favorites.
@Levani, thanks for pagination suggestion. i’m adding this to my TODO list. but i can’t say “i will do it soon”.
This is a great concept. I’m creating a site where I’d like people to be able to tag their favorite pages.
Is this possible?
@Joceyn pages = posts there is no different. You can use this plugin in pages too.
This plugin is great but I’m having one problem – when I click on “add to favorites”, the loading graphic shows up and never stops. I’ve checked the “your favorites”, and the posts are not added to favorites. Any ideas?
@breezyskies, i think there is a problem with AJAX request. Can you send me a link which i can see this problem?
Thank you for checking anyway, but I removed the plugin several months ago. I’ve since switched themes, and I may try it again someday. I’ll let you know if the same thing happens again at that time.