這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

使用者評論

2023 年 5 月 28 日
Thank you for this amazing plugin. It still works like a charm! Is there a place where I can donate?
2023 年 2 月 21 日
Since it says "untested" with my theme, I tried it out and I'm happy to report so far it looks like it works with my theme. I use Manta Serious Theme. Thanks. This added exactly what I needed. Update: One issue with my theme I found , is that it seems to only store the data in the Web Storage. I searched and found none being stored in my database. Not sure why that'd happen though.
2022 年 11 月 16 日
重宝しております。 シンプルで使いやすい! とても魅力的なプラグインですので、今後は有料版を検討するのもありかと思います。
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?
閱讀全部 12 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈My Favorites〉的開發相關工作。

參與者

〈My Favorites〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈My Favorites〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.1

Tested on WordPress 6.0.

See the release notes on GitHub.