[WordPress] 外掛分享: My Favorites

首頁外掛目錄 › My Favorites
WordPress 外掛 My Favorites 的封面圖片
1,000+
安裝啟用
★★★★★
5/5 分(15 則評價)
69 天前
最後更新
0%
問題解決
WordPress 4.8+ PHP 5.4.0+ v1.4.4 上架:2021-01-19

內容簡介

這款外掛可以讓使用者儲存喜愛的文章並列出清單。
這款外掛很簡單,只要安裝後使用簡碼,即可儲存使用者喜愛的文章並在任何地方顯示清單。
已登入使用者的資料儲存在使用者 meta 中,其他使用者的資料則儲存在網路儲存(Web Storage)中。

使用方法

簡碼: [ccc_my_favorite_select_button post_id="" style=""]
簡碼: [ccc_my_favorite_list_menu slug="" text="" style=""]
簡碼: [ccc_my_favorite_list_results class="" style=""]

有簡碼的頁面可以使用清單視圖 ([ccc_my_favorite_list_results])。

「載入更多」是以「posts_per_page」來顯示。
當使用者的喜愛文章數量超過「posts_per_page」時顯示它。

簡碼: [ccc_my_favorite_list_results posts_per_page="10"] 預設為一百篇。

您可以顯示文章的「摘要」。
這個值是摘要的字元長度。
如果不需要,可以使用「no excerpt」 或「0」。

簡碼: [ccc_my_favorite_list_results excerpt="30"]

如果需要,您可以更改清單視圖的程式碼。

簡碼: [ccc_my_favorite_list_custom_template style=""]

有簡碼的頁面可以使用自訂清單視圖 ([ccc_my_favorite_list_custom_template])。
將您清單視圖的函數 (function ccc_my_favorite_list_custom_template( $my_favorite_post_id ) { }) 添加至 您的佈景主題/functions.php
$my_favorite_post_id 是陣列。
style=”none” 可以取消清單的預設 CSS 樣式。

詳細的使用說明正在準備中。

了解更多

這款外掛在 GitHub 上開發

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon