WP Favorites allows your logged in users to favorite a tag, and allows them to see only posts that have that tag. They can also favorite multiple tags, and see only posts that have all those tags (or optionally any post with any of those tags). Example: You run a site about tea, iced and hot, green black and white. You tag every post green, black, or white, as well as iced or hot. Your user only likes iced green tea, so they favorite the ‘iced’ tag, and the ‘green’ tag. Then, they can see only posts pertaining to iced green tea (or optionally any post’s tagged either iced or green). Users are able to favorite a tag from it’s archive page.
- Install wp_favorites from the plugin page, or upload it, whatever.
- Activate it
- You can drop the widget into any of your sidebars if your theme is widget compatible, other wise drop
if(function_exists('wp_favorites')) wp_favorites();into your template wherever you want the navigation to show up.
“wp_favorites” 是开源软件。 以下人员对此插件做出了贡献。贡献者
- Added custom html option for what to display if a user is logged in but has no favorites
- Added two conditional tags: is_favorite(), which returns true if all the tags currently being browsed are favorited, and is_multiterm(), which returns true if there are multiple tags being browsed concurrently, such as example.com/?tag=tag1,tag-2
- Added the ability to use an inclusive or an exclusive search. That is: let your users search for posts that contain ALL selected tags (exclusive), or let them search for ALL posts that contain any selected tags (inclusive).
- Added the ‘View All’ button, which selects all the favorites.