[WordPress] 外掛分享: Favorite Post

首頁外掛目錄 › Favorite Post
70+
安裝啟用
★★★★
4.3/5 分(7 則評價)
2196 天前
最後更新
問題解決
WordPress 3.3+ v1.0 上架:2013-08-16

內容簡介

這是一個簡單又好用的 WordPress 收藏文章外掛。

功能

提供一個按鈕用來收藏文章。
僅適用於登入使用者。
有收藏文章的小工具。
支援自定義文章類型。

使用方法

在文章頁面加入 <?php if ( function_exists( 'wfp_button' ) ) wfp_button(); ?> 這個程式碼以顯示收藏文章的連結。
$favorites = WeDevs_Favorite_Posts::init()->get_favorites(); – 取得已收藏的文章。支援三個參數: post_type、limit、offset。預設的 post_type 是 all,可以取得所有文章類型的文章。
使用小工具顯示收藏的文章。
使用短碼 [favorite-post-btn] 可以插入文章收藏連結。也可以傳入文章 ID 作為參數。[favorite-post-btn post_id="938"]。
使用短碼 [favorite-post] 顯示已被收藏的文章。也可以傳入這些參數: user_id、count、post_type。例如: [favorite-post user_id="1" count="5" post_type="all"]

貢獻

這個外掛可能有錯誤或缺乏許多功能。如果你想要貢獻這個專案,歡迎你前往 Github 上 fork 這個專案。

作者

由 Tareq Hasan,從 weDevs 帶來。

捐贈

如果你喜歡這個外掛,為它的開發捐贈,讓它能夠繼續帶來更多的優秀功能。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Favorite Post」→ 直接安裝(推薦)

原文外掛簡介

This is a simple yet another favorite post plugin for WordPress.
Features

Gives a button to favorite a post.
Works only for logged in users.
Has a favorite post widget
Custom post type support

Usage

Insert this code in your post page to show a favorite post link.
$favorites = WeDevs_Favorite_Posts::init()->get_favorites(); – get favorite posts. Supports 3 parameters, post_type, limit, offset. The default post_type is all, for getting all post types.
Show favorite posts in a widget.
Use the shortcode [favorite-post-btn] for inserting the favorite post link. You can also pass a post id as a parameter. [favorite-post-btn post_id="938"].
Use the shortcode [favorite-post] to display favorited posts. You can also pass these parameters: user_id, count, post_type. e.g. [favorite-post user_id="1" count="5" post_type="all"]

Contribute
This may have bugs and lack of many features. If you want to contribute on this project, you are more than welcome. Please fork the repository from Github.
Author
Brought to you by Tareq Hasan from weDevs
Donate
Please donate for this awesome plugin to continue it’s development to bring more awesome features.

文章
Filter
Apply Filters
Mastodon