kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
223 stars 86 forks source link

Suggestion: Display post authors and other data in favorites list #195

Open aquariusdev opened 2 months ago

aquariusdev commented 2 months ago

Hi, I would like to suggest the following shortcode attributes for displaying the favorites list:

All of these would be boolean strings defaulting to false.

I would like to use something like this to display the user favorites list as a grid with optional pagination.

farukgaric commented 2 months ago

Hi Aquariusdev,

You can use "get_user_favorites()" to get an array of favorite posts IDs and create your own templates with query parameter "post__in".

I came across this plugin today on client's website and I am impressed how well coded it is. Just go to code in app/API/functions.php you can find all helper functions there.