开发者 | andrex84 |
---|---|
更新时间 | 2015年1月9日 23:20 |
PHP版本: | 3.7.1 及以上 |
WordPress版本: | 3.7.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[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:
[thisorthat]
to the page where you want people to compare the different items[thisorthat_ranking]
to the page where you want to view the ranking list.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.
This van be done by using the shortcode [thisorthat_ranking]
.
Add a 'posttype' variable to your shortcode. Example: [thisorthat posttype="product"]
.
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"]
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)
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.