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. Jessi

    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.

    Reply
  2. Sourena

    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.

    Reply
  3. gulflee

    hello Huseyin, thanks for great plugins, i manage to “add to favorites”, did the plugins show the “favorites” at admin area. ie user-profile?

    Reply
  4. Li-An

    Hello,
    It could be nice to put the changelog on the WP plugins depositary (and correct the link to the official plugin page). Thanks ! :-)

    Reply
  5. Jan

    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?

    Reply
  6. Dmitriy

    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 :)

    Reply
  7. Rob Parker

    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

    Reply
  8. Caballero

    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.

    Reply
  9. musab

    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.

    Reply
  10. Pat

    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.

    Reply
  11. Jan

    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.

    Reply
  12. Boris

    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?

    Reply
  13. Jan

    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

    Reply
  14. Donna

    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.

    Reply
  15. Jan

    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.

    Reply
  16. rtibbs4

    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.

    Reply
  17. Tamas Fodor

    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

    Reply
  18. Travis

    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!

    Reply
  19. Ryan

    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:)

    Reply
  20. Maria

    Hello! Great plugin!

    Can you please post php code to show us how to get favorites to show up as thumbnails?

    Please :)

    Reply
  21. Cy

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

    Reply

Leave a Reply

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