My Favorites

描述

Save user’s favorite posts and list them.
This plugin is simple. You can save the user’s favorite posts just a install and display them anywhere you want with just a shortcode.
The logged-in user’s data is saved in the user meta. Other user’s data is saved to Web Storage (localStorage).

Usage

  • Shortcode: [ccc_my_favorite_select_button post_id="" style=""]
  • Shortcode: [ccc_my_favorite_list_menu slug="" text="" style=""]
  • Shortcode: [ccc_my_favorite_list_results class="" style=""]

For pages with a shortcode for list view ([ccc_my_favorite_list_results]).

“Load More” is displayed with “posts_per_page”.
It will be displayed when the user has more favorite posts than “posts_per_page”.

  • Shortcode: [ccc_my_favorite_list_results posts_per_page="10"] default is 100 posts.

You can display the post’s “excerpt”.
This value is the char length.
If not needed, use “no excerpt” or “0”.

  • Shortcode: [ccc_my_favorite_list_results excerpt="30"]

If you want, you can change the code for list view yourself.

  • Shortcode: [ccc_my_favorite_list_custom_template style=""]

For pages with a shortcode for custom list view ([ccc_my_favorite_list_custom_template]).
Add the function (function ccc_my_favorite_list_custom_template( $my_favorite_post_id ) { }) for your list view to your-theme/functions.php.
$my_favorite_post_id is array.
style=”none” excludes the default CSS for the list.

Detailed usage is under preparation.

Discover More

This plugin is developed on GitHub

安装

  1. Upload my-favorites to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use shortcodes to display the favorite posts list and an icon for save and a menu for link to list.

评价

2022年6月21日
I love how simple and elegant this plugin in, and works exactly as described. It's simple to implement, very flexible with plenty of options for customisation, and the support threads are thorough and helpful. Just don't do what I did and add the button and the favourites list to the same page (while I was testing), as this breaks the button under the Thrive Theme Builder theme.
2021年10月23日
Excellent plugin! Very light, just enough sets up. Without bugs. It is surprising that he is free. The author, you already throw, nulyuya. We will pay 🙂
2021年9月25日
I love it! One issue I'm not completely happy with is that it doesn't allow me to open my favorites in a new windows when I click on them from the list. Is there an option to turn that on?
2021年9月16日
Was looking for a plugin where users could save their favorite songs on the website. This plugin is simple but yet very effective.
2021年8月9日
Searched for a plugin to add a favorite function to the Sonaar Music Player and I was able to to add it quickly. This plugin gives you a lot of freedom.
2021年6月19日
Exactly what I was looking for. Many thanks to the developer! I hope you'll always maintain this and add more cool features. I would like to suggest adding an option to limit likes to logged-in users
阅读所有9条评价

贡献者及开发者

“My Favorites” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“My Favorites”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“My Favorites”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.4.1

Tested on WordPress 6.0.

See the release notes on GitHub.