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

Post Likerator

描述

Enables a simple like/unlike feature to be added to posts, pages, etc. There is no dislike feature. You are expected to style it however you like so it matches your theme; it has none of its own CSS. There is also no admin page or options for this plugin.

Add the like button to your template using the included PHP function:

<?php post_likerator(); ?>

By default it will use the current post ID and echo the like button’s markup. You can change this by passing (integer) Post ID and (boolean) echo arguments to the function:

<?php $like_button = post_likerator(2501, false); ?>

The above will attribute likes to post ID 2501 and will assign the string of markup to the $like_button variable instead of echoing it.

Once you’ve got it looking awesome, click to like the post. Clicking again will unlike it. You can go back and forth as much as you want, but it will probably get boring after a little while.

安裝

  1. Go to Plugins in your admin and click Add New.
  2. Search for “Post Likerator”.
  3. Install it and activate.
  4. Add the post_likerator() function to your post or page templates.

When you activate the plugin, it will create a new database table for keeping track of the likes on posts. This table will use your database prefix, so if you use the default prefix the table will be called wp_post_likerator_likes. You’ll need to delete this table manually if you want to completely uninstall the plugin.

常見問題

Installation Instructions
  1. Go to Plugins in your admin and click Add New.
  2. Search for “Post Likerator”.
  3. Install it and activate.
  4. Add the post_likerator() function to your post or page templates.

When you activate the plugin, it will create a new database table for keeping track of the likes on posts. This table will use your database prefix, so if you use the default prefix the table will be called wp_post_likerator_likes. You’ll need to delete this table manually if you want to completely uninstall the plugin.

I don’t see my like button!

The markup is there, you need to create your own CSS to make it look however you want.

Where are the plugin’s options or settings?

There aren’t any, it’s really simple and just does its thing.

Why can’t I dislike something?

You really want people disliking your own posts? Brave. Well, this isn’t the plugin for you then.

What makes this better than all the other ones?

It’s simple and developer friendly. All the other ones had too many features or had CSS that was a pain to override, so we made our own that only did what we needed. Now we’re sharing it so you can enjoy it too.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Post Likerator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Post Likerator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.0

  • Initial release.