该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Love It

描述

Love It is a simple plugin that adds a “Love It” link to your posts, pages, and custom post types. It works similar to Facebook’s Like button, but is exclusive to your website. It provides a great way for users to show their appreciation, and for you to gain a good idea of which posts are your most popular.

The plugin includes a simple widget to show your “Most Loved” items.

This plugin is based of the tutorial I published on creating a simple Love It plugin

The demonstration video for the tutorial and the plugin is below:

An improved Pro version of the plugin is available. Features of the pro version include:

  • Show Love It links automatically
  • Track your most popular posts, pages, and custom post types
  • Setup in less than 5 minutes
  • Enabled / disable for every registered post type
  • Customize the text displayed for links and “already loved” messages
  • Users can only love posts/pages once
  • Works for logged-in and logged-out users
  • Most Loved widget included
  • No coding necessary
  • Custom CSS option for advanced users
  • Embed help documentation in plugin settings
  • Easy to use template tags for developers

安装

  1. Upload love-it to wp-content/plugins
  2. Click “Activate” in the WordPress plugins menu
  3. A “Love It” link will be automatically added to the bottom of all posts / pages
  4. Love It links are displayed to logged-in users only.

常见问题

Can non-logged-in users Love items?

No, not at this time. The ability for non-logged-in users to Love items with JS cookies will be added to the pro version soon.

Can I enabled the Love It link on only some post types?

In the pro version you can.

评价

阅读所有2条评价

贡献者及开发者

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

贡献者

将“Love It”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0.5

  • Fix: PHP 4 style constructors
  • Fix: Undefined indexes when first adding widget to sidebar

1.0.4

  • Tested for compatibility with WordPress 4.0
  • Added missing esc_attr() calls

1.0.3

  • Added new li_display_love_links_on filter that can be used to modify the post types the Love It links display on
  • Load the text domain on “init”

1.0.1

  • Added the li_love_link($love_text = null, $loved_text = null) function
  • Made it so the li_love_link() function can be used on index / archive pages
  • Updated to JS to work with archive views

1.0

  • Initial release