WordPress.org

Forums

WP Favorite Posts
[resolved] display favorite posts of a specific user given as parameter (11 posts)

  1. derhyl
    Member
    Posted 4 years ago #

    Hello,

    I am trying to display all favorite posts of a given user.
    Basically, it is to use in the author page to let authors show visitors their prefered posts in the blog.

    Can someone help?

    Thank you so much

  2. Florence
    Member
    Posted 3 years ago #

    I'm looking for the same feature. Have you figured it out?

  3. Florence
    Member
    Posted 3 years ago #

    Can anyone pls help?

    PS WP favorite posts isnt quite what im looking for... I would love it if you'd be able to save favorite posts to your profile.

  4. Nio
    Member
    Posted 3 years ago #

    So far...

    WP Favorite Posts saves info inside table "wp_postmeta"
    ( Search meta_key = wpfp_favorites )

    Next we need a custom query attached to the author.php template :)

    I will probably need this to, in the near future...

  5. Florence
    Member
    Posted 3 years ago #

    That would be great! Thanks!

  6. Huseyin Berberoglu
    Member
    Plugin Author

    Posted 3 years ago #

    You can use wpfp_get_users_favorites(String userlogin) this function for get a user's favorites

    For example if you want to get hberberoglu's favorite posts you should write:

    wpfp_get_users_favorites(hberberoglu)

    this will return hberberoglu's favorite post ids in an array.

  7. dporchia
    Member
    Posted 3 years ago #

    What if I want to pull the favorite count for a post and display that value on the homepage of my site?

  8. tkhan
    Member
    Posted 3 years ago #

    Is there anyway I can display a users favourites on their profile page,

    I have tried wpfp_list_favorite_posts();, but this gives me a list of my own favourite posts no the authors whose profile I am on.

    Any help would be great.

  9. jeremyarey
    Member
    Posted 3 years ago #

    I would like to see this too, or a way for other members to see favorites of others. Is this possible?

  10. alvaro05
    Member
    Posted 3 years ago #

    You can use wpfp_get_users_favorites(String userlogin) this function for get a user's favorites

    For example if you want to get hberberoglu's favorite posts you should write:

    wpfp_get_users_favorites(hberberoglu)

    this will return hberberoglu's favorite post ids in an array.

    Huseyin Berberoglu, Could you please explain this a little deeper? It doesn't seem to work out for me. Thanks!

  11. refulez
    Member
    Posted 3 years ago #

    yes, please explain , it does not work for me either. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Favorite Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic