Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aquariusdev opened this issue Jun 4, 2024 · 1 comment
Open

Comments

@aquariusdev
Copy link

aquariusdev commented Jun 4, 2024

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

  • include_authors: to include the linked author(s) of a post
  • include_tags: to include linked tags of a post
  • include_publish_date: to include date of publication
  • include_favorite_date: to include date of favorite
  • include_category: to include linked category

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants