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

This-or-That

外掛說明

Inspired by Facemash, Facebook’s predecessor, this plugin sets up two items next to each other and lets visitors choose which one they favor. Each ‘vote’ adjusts the rating of both items. You can then easily create lists with your visitors favorite items. [Updated Fix for WordPress 4.1]

See this plugin in action.

Works with content already on your site!

Start by using what you’ve already got. The This-or-That plugin works with any post type already on your website like your blog posts, photos, recipies, or WooCommerce products.

Item Manager

If you want to keep your This-or-That items seperate thats no problem. This plugin creates a seperate section in your Admin where you can create and manage your ‘This-or-That’ items. You can even sort them by ranking, wins, and losses.

Easy Implementation

If you’ve added some This-or-That items, the only thing left to do is add the shortcode [thisorthat] to a page. Displaying the ranking lists is just as easy: [thisorthat_ranking]. Please see the FAQ for some extra options like showing post-types or categories.

Elegant AJAX Interface

The plugin comes with an elegant, user-friendly voting interface. Items will automatically get updated without a page-refresh and you can even vote using your left and right keys on your keyboard.

Create Lists per Category

Show lists from your different categories or custom taxonomies.

Uses the ELO Rating system

This-or-That uses the ELO Rating System, created to rank chess players but now used in a variety of fields.

Be Creative!

There are plenty of ways to use this plugin; get some insight in what your visitors like or let them engage with your sites content. Some stuff you might want to use this plugin with:

  • Recipies
  • Woocommerce Products
  • Holiday Images
  • Simpsons Episodes
  • Design Proposals
  • Artworks
  • Books
  • Etc…

Read more on the plugin website.

螢幕擷圖

  • The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).
  • The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).
  • The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).

安裝方式

  1. Unzip and upload the “this-or-that” folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Add items to the new This-or-That post type in your admin screen. Don’t forget the featured image!
  4. Add the shortcode [thisorthat] to the page where you want people to compare the different items
  5. Add the shortcode [thisorthat_ranking] to the page where you want to view the ranking list.

常見問題集

How do I get started

You can use the plugin anywhere in your websites content. First make sure you have some content to compare by adding items to the This-or-That post-type in the Admin. Make sure to add some featured images! When this has been done, you can add the shortcode [thisorthat] to any of your posts or pages.

How do I display the ranking list

This van be done by using the shortcode [thisorthat_ranking].

How to use my own Posts types?

Add a ‘posttype’ variable to your shortcode. Example: [thisorthat posttype="product"].

How can I use a certain category?

Add a ‘category’ variable to your shortcode. Example: [thisorthat category="holiday_pics"].
By deafult, This-or-That will use the categories set under the This-or-That amin item. If you use a different post-type, it will generally have a different taxonomy. Therefore, you have to set which taxonomy you want to use.For example, if you want compare a category from WooCommerce you should use [thisorthat taxonomy="product_cat" category="Sweaters"]

How do I customize the ‘voting’ appearance?

You can control which elements you want to show through a couple of true or false variables. These are:
show_image : Shows the posts featured image (default: *true)
show_title : Shows the post title (default: *true)
show_excerpt : Shows the exceprts of the posts content (deafult: *false)
show_score : Shows the items ranking (default: *false)

How do I change the thumbnail size?

You can use the thumb_size variable. Example [thisorthat thumb_size="medium"]. It uses any thumbnail size you use in your website. WordPress by default supports: thumbnail, medium, large, or full.

使用者評論

2016 年 9 月 3 日
Really simply and powerfull plugin which can bring traffic on site. Unfotunately there is missed some basic functionality like reset stats and items used in different rankings at the same time.
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈This-or-That〉的開發相關工作。

參與者

將〈This-or-That〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial release.

1.0.1

  • Readme.txt changes.

1.0.2

  • Readme.txt changes.

1.0.3

  • Fixed several Javascript bugs. With help from gdibble.