- 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
great plugin!
Hi there Huseyin, Thanks so much for this simple to use plugin and for thinking of allowing users to change text. I have the page working but doesn’t show in a post, not even the script. I have cookies enabled in Mac , chose a pic and text, and was logged in. I’ve tried numerous times. Could this be because registered users are BP members from the main blog in MU even though I didn’t select “only registered users”?
Hello, I found this plugin really well done, and besides, I have no problem, but I change cons Complete the member page, to include the_excerpt, the ID of the post, the function and function the_ratings the_view …
Is this possible?
HI Currently i’m using wp 3.05, i add following code
{{wp-favorite-posts}} to page it working fine
while i place the code in my user dashboard
i just shown the code as text which is {{wp-favorite-posts}}
what i already do troubleshoot, reactive this plugin.
Question: how to place {{wp-favorite-posts}}in my user dashboard
Appreciate for any suggestion.
thank you in advanced
Is it possible to display the number of favorites as a member?
@Huseyin Berberoglu.
I am developing a template where I have my own calls to wp_delete_post(). What I have noticed is that when I make a call to this function, the user data across the site does not remove the post from the favorites lists.
In other words: If I have a post and 3 users make it a favorite and then delete that post, all three users will still return the deleted post id with a call to wpfp_get_users_favorites().
What can I do to remove the post ID from a users favorites list once the post has been deleted?
Hi!
Thanks for a great plugin! I wonder if there is a way to have the favorites organized alphabetically.
Regards! /Per
Hi Huseyin,
(Sorry for my english), I have a problem with the plugin and I hope you can help me. Use this code wpfp_list_favorite_posts in the page author.php, but when i add a favorite post is added to all user profiles. . there is a solution to this problem?
Hi there,
do not know if you still maintain this plugin, but a feature that would increase the value of this plugin enormously, especially with the custom post types/taxonomies since 3.0:
Being able to categorise the favourite posts according to their category/taxonomy or their post type. So lets say you have post types or categories:
car, bike, motorcycle. Then you mark your favourite bikes, cars, motorcycles and with them show up seperately. Like: {{wp-favorite-posts “cars”}}
{{wp-favorite-posts “motorbikes”}} {{wp-favorite-posts “bikes”}}
It looks simple, but I’m not a coder, so I have no idea if this is a major thing, or a simple tweak. I would be grateful for any advice anyway.
Hello Huseyin… one question please…
I want to replace the text “add to favorite” “remove from favorite” with an image.
In the control panel of WP, in the sections of your plugin, I can replace the text with:
and show that in the post (where i put )
The little problem come when i see the post, i roll over the image “to add to my favorites” and show me the “code” of the image (
So… how I can remove that title and put other? (or none if will be the case) I do not show the code with the path size border and other thing i put to that image.
Thanks so much for any Suggestion to my question and Thanks your for your Time for make this plug-in.
GREAT PLUG-IN!
I respond my self.
I change this in your code:
function wpfp_link_html($post_id, $opt, $action) {
$link = "". $opt ."";
$link = apply_filters( 'wpfp_link_html', $link );
return $link;
}
in the line 159.
Thanks again for the plugin. A lot of Thanks.
Hi there,
Somehow my comment disappeared?!? Or did I leave it on another forum…
Anyway, the question was:
is it possible to categorise the favorites into custom post types/taxonomies:
i.e have: Custom post types: cars, bikes, motorcycles and can create separate favorites for those.
[wp-favorite-posts "cars"] would then display favorited cars and so on.
Possible? Could it be introduced in the plugin?
Are you still maintaining the plugin?
Best regards,
Sascha
Very odd! Suddenly my older comment is showing again!!!
Cannot see my comments again….
Anyway, good example of what I mean:
http://www.architonic.com/pmpro/product-group/0/2/2/1
What would you charge to write something like this for me?
Regards,
Sascha
Great plugin. I would like to show post thumbnails on the You Favorites Posts page. I’ve seen comments you’ve exchanged with Rosari and Emily. You suggested using the_post_thumbnail() function. Where should I place this function? Thanks in advance.
Hy, can i show images? If i can please tell me the shortcode or code. Thank you!
Hi Huseyin,
What a great plugin you offer us ! Thank you so much !!!!
I read there it’s possible to display the count for posts added to favorites.
Where to put that code:
global $id;
$count = wpfp_get_post_meta($id);
I’d like to put the favorite count in my wp header template file. Is it possible ?
More over, is it possible to have the favorites page within a template file ?
I hope you ‘have some time to help me !
Best regards and thanks again !
God bless !
Great plugin!
I wonder if it is possible to update the widget data using ajax, because now the user has to reload in order to see the widget updated.
So far:
– I wrapped the widget list in order to set the new data from “wpfp-your-favs-widget.php”,
– Added an action after “add” and “remove”
add_action("wpfp_after_add","xxx");
– The issue is that I don’t know how to pass the user’s list because the scope is getting changed after javascript ran
Are you planning on implementing this functionality or can you explain how to do it?
Hello Huseyin,
I would like to give the admin and editor role the capability of seeing which users favorited a particular post. Is it possible?
Thanks in advance.
Is there a way to sort the favorites by date modified? Sometimes, I update the posts with new info, but if I have 30 posts marked as favorites, and if I have the “number of posts to display” set to 10, then the other ones will just remain buried. And I can’t change the “number of posts to display” to 30 because it’d take up too much space.
By the way, I love your plugin. It is superb.
Hello, is it posible to translate the plugin to spanish? perhaps using a .po file?
Thanks
Hi Huseyin,
thank you for that cool plugin!! Is there a way to use parameters? I want to use it in a customized post-overview and want to hand over the post-id like “wpfp_link($post-id)”.
Best regards
Sebastian
Hi,
Everywhere I put something of the plugin, the add-icon and the loader icon is showing up..
Any solutions for this?
Hi Huseyin
Great plugin, really simple and works really well. I have a question though, I am using the Object theme by Woothemes, which shows an image as the post, is there a way that the image of the post could show in the ‘My Favorites’ page also? Any help would be great, and thanks for making this plugin, and making it free too!
Regards, Joe
I have been looking fora while for a way to mark favourite pages, but all I could find were plugins that allowed you to bookmark to social networking sites, which is not what I wanted. This plugin looks almost perfect:-
Question: is there a way to display the favourites in a sidebar widget rather than on a separate page?
Cheers
Sandy
I Love this plugin!
Hi
Is it possible to have the post image displayed as well as the post title?
When i use permalink : “/%category%/%postname%”,hit the wp-favorite-posts “Add to favorites” is error! “Remove favorites” is error, “clear…..” is error! :(
Hello,
tnx for this great plugin, its my favorite realy!
Only one small sugestion is to make able select picture before and after you add item to your favorites.
For example picture with text “add me” wukk be if you dont have that post in your favorites and after you add it there will be picture with tryx “you added me”.
Secon sugestion is to make able write sometnig above list texts in Favorites pages.
Even if you in post page add something before {{wp-favorite-posts}} it still appers after it when you look at that page!
Best regards and big tnx for your good work!
Sorry for my bad english.
MrJukic
Hi Huseyin,,
Great plugin. I’ve been using it for quite some time now. Since a while a problem occurs. In front of the bookmark link there is a loading wheel that keeps spinning. I’ve tried a few things, but a can’t fix it. Do you have any idea why this occurs?
Thanks,