Allows users to add favorite posts. This plugin use cookies and database for
saving data.

  • If a user logged in then favorites data will saved in database instead of cookies.
  • If user not logged in data will saved in cookies.

You can choose “only registered users can favorite a post” option, if you want.
Also there is a widget named “Most Favorited Posts”. And you can use this template
tag for listing most favorited posts;

Most Favorited Posts

If you use WP Super Cache you must add page (which you show favorites) URI to “Accepted Filenames &
Rejected URIs”.

See more details about
plugin

Download

Latest version: Download WP Favorite Posts v1.5.6 [zip] (Downloaded 25427 times)

Donate

If you like this plugin show your appreciation and make a small donation.

Installation

  1. Unzip into your /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php if (function_exists('wpfp_link')) { wpfp_link(); } ?> in your
    single.php or page.php template file. Then favorite this post link will appear in all posts.
  4. OR if you DO NOT want the favorite link to appear in every post/page, DO NOT
    use the code above. Just type in [wpfp-link] into the selected post/page
    content and it will embed the print link into that post/page only.
  5. Create a page e.g. “Your Favorites” and insert {{wp-favorite-posts}}
    text into content section. This page will contain users favorite posts.
  6. That’s it :)

Changelog

For changelog go here.

 

376 Responses to WP Favorite Posts

  1. manuel says:

    which is the php code that would have to put instead of ((wp-favorite-posts)), to customize my page?

  2. Alan says:

    Hello Huseyin – you have an awesome program in wp-favorite-posts. It is so great I want to put it everywhere on ibooknewzealand.com, even in the footer… I have tried ` `, and just `{{wp-favorite-posts}}` but neither work… Any ideas ? Regards, Alan

  3. Huseyin Berberoglu says:

    @Ben it’s not easy or not possible to populate two plugin from one wp-favorite-posts. these errors are normal.

  4. Huseyin Berberoglu says:

    @G01010; it’s not possible for now.

  5. Huseyin Berberoglu says:

    @Andy it’s possible. You can look that page for example; http://nhan.nxsn.com/?page_id=3

  6. Huseyin Berberoglu says:

    @Janus; go to admin page wp-admin/options-general.php?page=wp-favorite-posts and try to remove “Text for add link”

  7. Huseyin Berberoglu says:

    @Emir, evet gösterebilirsin. global $id; $count = wpfp_get_post_meta($id); gibi bir şey işini görür.

    2. istediğin de mümkün. Bir örneği var; http://www.nefisyemektarifleri.com/tarif-defterim/

  8. Huseyin Berberoglu says:

    @Justin thanks for using :)

  9. Huseyin Berberoglu says:

    @Daniel try to use [wp-favorite-posts]

  10. Huseyin Berberoglu says:

    @Jan it’s a known bug. I’ll fix it when i find time.

  11. Huseyin Berberoglu says:

    @Jenell can you tell your page’s url

  12. Huseyin Berberoglu says:

    @Santiage; you can use this for favorite count;

    global $id;
    $count = wpfp_get_post_meta($id);

    you can not show different user’s favorites on another user’s page.

  13. Huseyin Berberoglu says:

    @Isakndar; For now you can not show another user’s favorite but with another version I want to add this function.

  14. Huseyin Berberoglu says:

    @manuel; use wpfp_list_favorite_posts()

  15. Huseyin Berberoglu says:

    @Alan, thanks. Try to use [wp-favorite-posts]

  16. Alan says:

    Hello Huseyin – It’s ok the code is: ` `, Many thanks again, Alan

  17. Santiago says:

    How bout a widget?
    I dont have the automatic widget thing, I have to do it manually.

    I put [wp-favorite-posts]
    but it doesnt work.
    So wat should i put?

  18. Huseyin Berberoglu says:

    @Santiago if you want widget, put that php code; wpfp_widget_view(array());

  19. Frank says:

    Amazing plugin you made, simple and clean like every plugin should be. Works fine with most templates only i’ve got a problem with mine, I use Classipress and when i active wp-favorite-posts i get this error.

    Fatal error: Cannot redeclare wpfp_widget_view() (previously declared in ……/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php:3)

    I deleted the code from wpfp-widgets.php since i don’t need it. All works fine but i a’m wondering if this could cause errors in the future.

  20. Frank says:

    Me again,

    I thought, hé! I use the code from wpfp-your-facs-widget.php and display it on a another place and customize it a bit.

    I won’t work :( you’ve got a idea how to display the favorites??

    echo "";
    if ($favorite_post_ids):
    foreach ($favorite_post_ids as $post_id) {
    $p = get_post($post_id);
    echo "";
    echo "post_title ."'>" . $p->post_title . " ";
    echo "";
    }
    else:
    echo "";
    echo "Your favorites will be here.";
    echo "";
    endif;
    echo "";

  21. alan Watson says:

    Hi Huseyin – would it be correct to say that wp-favourite-posts (if displayed as a widget or via code AND appears on every page, eg in the sidebar), will not work correctly if wp-super-cache is also working on every page ? Regards, Alan

  22. Jochen says:

    Hello Huseyin,

    just tried out your plugin, it really works great. here are a couple of feature requests:
    - BuddyPress compatible: would love to have an option, where a user could favorite a posts over all blogs (wpmu/wp multi) and these get shown on his profile at member/username/favposts for example.

    you plugin is way better than the internal “fav” function where you cannot fav a post on the post itself!

    thanks!

  23. Ana White says:

    I’m so sorry if you’ve already answered this question and I couldn’t ‘get it’ in the comments. I would like to create a sidebar widget that displays the contents of the page “Your Favorites”. I tried using an rss feed and all posts displayed. Is there an easy solution?

    Also, where do new users go to login to be a part of the favoriting?

    Thanks so much, as someone else who also provides content for free, I can understand and appreciate your generosity and talent.

    Ana

  24. Marcin says:

    Hi Huseyin,

    Thanx for the great plugin, I’ve seen it working on some websites but unfortunately when I try to install it on my wp 3.0 multisite website using either Activate or Network Activate I get the error:

    Fatal error: Cannot redeclare wpfp_widget_view() (previously declared in /home/mojerest/public_html/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php:3) in /home/mojerest/public_html/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php on line 3

    Thank you in adavne for your help to fix the proble.
    Marcin

  25. Joel Harper says:

    Hi there,

    Is it possible to add a featured image thumbnail and excerpt to the results page? If so how much would you charge?

    Hope to hear from you soon.

    Joel

  26. bacn says:

    I’d like to display the Facebook Like button and have it integrate with WP Favorite Posts. What do you think?

  27. Ranji77 says:

    Hi!

    I love this plugin! I was wondering two things:

    1 – Is there an easy way to get a “count” of how many favorite post a user has? I would like to publish this number somewhere on their favorites list.

    2 – Is there any plans to add pagination to the favorite posts list? If a favorites list gets excessively long, I want my users to be able to paginate through.

    Thank you in advance!

  28. Sam says:

    Is there a simple way to get the favorites page to show thumbnails?

  29. Andrew says:

    Please consider adding a div.class to your projects!

    Favorite me!
    Favorited!
    Remove From Favorites!

    **VERY SIMPLE! PLEASE INCLUDE THIS ON YOUR NEXT UPDATE!**

  30. Andrew says:


    Favorite me!
    Favorited!
    Remove From Favorites!

    **VERY SIMPLE! PLEASE INCLUDE THIS ON YOUR NEXT UPDATE!**

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.