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

    I’m having a problem with the plugin in php5. It says Fatal error: Cannot re-assign $this in /nfs/c01/h12/mnt/8786/domains/oxr.pulsecreativepartners.com/html/wp-content/plugins/wp-favorite-posts/wp-favorite-posts.php on line 133.

    If I change $this to $that it works for the first favorited post, but if I had 2 favorites, it displays every post I have.

    Can you help with this error?

    Reply
    1. Huseyin Berberoglu Post author

      @Logan, Which version of PHP5 do you use ? 5.3.x or 5.2.x ? I use plugin with 5.2.x with no problem.

      Reply
  2. Ren

    Excellent plug-in, but where’s the settings information on the dashboard? I see the admin file with what appears to be a whole structure of customizeable options, but when activated, it’s not showing anywhere on the admin dashboard. I would like to change the wording and messages.

    Reply
    1. Huseyin Berberoglu Post author

      @Ren you can see settings page under Settings tab. or you can go http:///wp-admin/options-general.php?page=wp-favorite-posts

      Reply
  3. Veron

    Excellent plugin! Is there a way to display all the registered users who have favorited a particular post? For example when I am reading a single post, I would also see a list of registered users who have added this post to their Favorites. This would add a cool social element to a blog!

    Reply
    1. Huseyin Berberoglu Post author

      @Veron, there isn’t a way for this now. But i’ve added this to my TODO list.

      Reply
  4. Pingback: WP Favorite Posts 1.3.3 Released! at Huseyin Berberoglu | blog

  5. designodyssey

    Is there a changelog. I’m using a previous version that I’ve modified a bit so I’m wondering if I need to “upgrade.”

    Reply
    1. Huseyin Berberoglu Post author

      @Negative0; update the plugin again and favorites will come back. Sorry for this fault.

      Reply
  6. Huseyin Berberoglu Post author

    No you didn’t do that because the update was published a few minutes ago. I fixed it and published version 1.3.5. Wait some time then update will appear.

    Reply
    1. Huseyin Berberoglu Post author

      @Vesel; Is your plugin directory different ? Isn’t it /wp-content/plugins ?

      Reply
  7. Suhail

    I really like this plugin and its near to my requirements. Great work done.

    Now i am wishing if on each post on the main page this Favorite link appears. so users can mark favorite from here instead of going to the single post page.

    Anyways thanks a lot.

    Reply
    1. Huseyin Berberoglu Post author

      @Suhail, go index.php and add code into loop (for example before the_content()). And your wish will become true.

      Reply
  8. Pingback: WordPress Plugin Releases for 03/20 « Weblog Tools Collection

  9. Pingback: WordPress Plugin Releases for 03/20 | pro2go Designs Blog

  10. Pingback: WordPress Plugin Releases for 03/20 | Son Of Byte - Web Design & Development

  11. Fadere

    Hey Huseyin,

    Awesome Plugin!

    I didn’t see this question asked/answered, sorry if I missed it at some point.

    Anyway, I use PHP MyVideoBlog on my site and there is a custom field with each post called “mvb_thumb_url” with the value being the thumb’s url location (duh) :P

    Is there an easy way to throw the custom field into the favorite’s page code? I haven’t managed to get it right.

    Thanks for any help in advance,
    Fadere

    Reply
    1. Huseyin Berberoglu Post author

      Hi Fadere,
      i am working about a new feature nowadays. you’ll be able to change template of the page which shows visitor’s favorite posts.
      this feature’ll be active in the next version.
      After that, you’ll be able to do easly what you want.

      Reply
  12. Pingback: WordPress Plugin Releases for 03/20 - Programming Blog

  13. Almaz

    Stunning plugin! But…
    If we check a web-page with the installed wp-favorite-posts on validator.w3.org, we get error message.
    You should replace ” ***” on ” ***”.

    Reply
    1. Huseyin Berberoglu Post author

      Hi Almaz, I checked plugin and replace with

      on Your Favorites page. I couldn’t find any errors except this.

      Reply
  14. Huseyin Berberoglu Post author

    @Almaz, I already did it :) In my last comment I wanted to say that; “I checked plugin and replace < span > with < div > on Your Favorites page. I couldn’t find any errors except this”

    This modification will be active with next version.
    Thanks for bug report :)

    Reply
  15. Huseyin Berberoglu Post author

    @Vesel go to this directory: /wordpress/wp-content/plugins/wp-favorite-posts/

    open wp-favorite-posts.php file

    find this line;
    define('WPFP_PATH', get_settings('home') . '/wp-content/plugins/wp-favorite-posts');

    replace it with this;
    define('WPFP_PATH', WP_PLUGIN_URL . '/wp-favorite-posts');

    Save file and test plugin again.

    It should work after that modification. Please let me know, if it works i’ll make this modification and it will be active with next version.

    Reply

Leave a Reply

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