WP Favorite Posts

  • Favorite list is empty.
FavoriteLoadingClear favorites

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.

DEMO See it in action

Don’t forget to donate

[paypal-donation purpose=”WP Favorite Posts” reference=”nxsn.com”]

Installation

It’s very easy;

  1. Download the WP Favorite Posts plugin.
  2. Unzip into your /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. 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.
  5. Create a page e.g. “Your Favorites” and insert text into content section. This page will contain users favorite posts.
  6. 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 FavoriteLoadingAdd 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

http://www.android-software.fr/mes-favoris

http://www.beckermanphoto.com/your-favorite-prints

396 thoughts on “WP Favorite Posts

  1. Stacy

    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”?

    Reply
  2. Guillaume

    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?

    Reply
  3. Anthony

    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

    Reply
  4. Steven

    @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?

    Reply
  5. Per

    Hi!
    Thanks for a great plugin! I wonder if there is a way to have the favorites organized alphabetically.

    Regards! /Per

    Reply
  6. Fask

    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?

    Reply
  7. Sascha

    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.

    Reply
  8. Yeow

    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!

    Reply
  9. Yeow

    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.

    Reply
  10. Sascha

    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

    Reply
  11. CG

    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.

    Reply
  12. Ibrahim-Yves

    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 !

    Reply
  13. odys

    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?

    Reply
  14. CJ

    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.

    Reply
  15. Tosh

    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.

    Reply
  16. Sebastian

    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

    Reply
  17. Sam

    Hi,

    Everywhere I put something of the plugin, the add-icon and the loader icon is showing up..

    Any solutions for this?

    Reply
  18. Joe

    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

    Reply
  19. Sandy

    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

    Reply
  20. goyokoo

    When i use permalink : “/%category%/%postname%”,hit the wp-favorite-posts “Add to favorites” is error! “Remove favorites” is error, “clear…..” is error! :(

    Reply
  21. MrJukic

    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

    Reply
  22. Maaike

    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,

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *