From 90b2d18947a30ebaf785bed582370627cb455f5c Mon Sep 17 00:00:00 2001 From: Taishi Date: Wed, 15 May 2019 18:34:50 -0700 Subject: [PATCH] :books: Update README.md --- README.md | 57 +++++++++++++++++++++++++++++----------------- readme.txt | 67 ++++++++++++++++++++++++++++++++++++------------------ 2 files changed, 81 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index bee1a9d..8d7dc39 100755 --- a/README.md +++ b/README.md @@ -1,34 +1,49 @@ -

WordPress Facebook Like Ranking

+# WordPress Facebook Like Ranking 😸😇😈 -Facebookのいいね数に基づいたブログ内の記事のランキングを表示するWordPressプラグインです。 +With this plugin, you can create a your posts' ranking sorted by the number of Facebook like. -使用例)btrax(ビートラックス)という企業のサイドバーです。 -freshtrax | btrax スタッフブログ +Ex) +![screenshot-1](https://user-images.githubusercontent.com/980588/57820677-9dc52280-7742-11e9-991d-e488a601f83d.png) -

使い方

+## How to use -ランキングを表示したい場所に以下のコードを書きます。デフォルトでは5つの記事が表示されます。 - -``` - -``` +### Create FB App +Here +https://developers.facebook.com/ +### Get FB App Token +You can get that here +https://developers.facebook.com/tools/explorer/ -関数には最大6つの引数を与えることが出来ます。 - -``` -get_like_ranking (int $post_number = 5, bool $post_count = true , array $thumbnail = null, $category_id = null, $shorten_words = null, $custom_post_name = null) -``` +### Set your FB App Token +You can see the setting of this plugin when you install it. Click it. +wp-fb-like-ranking-setting-image -例) +You will see the setting page like below. +Put your token in the form and hit the save button. +WPFBSETTINGPAGE-2 -この場合、Movieというカスタム投稿タイプ名の10つの記事が表示されます。2つ目の引数は"false"なのでそれぞれの記事のいいね数は表示されません。15px × 15pxのサムネイルが表示されます。記事タイトルが25文字以上の場合、25文字に短縮されます。 +### Generate your ranking +All you need to do is just hit the "Create or Recreate" button. +WPFBSETTINGPAGE-2 +### 🛠 Put code (or you can use wdget) +Put the code below whereever you would like to make the raking show up. +```php + ``` - -``` - +There are 6 parameters for this method. +```php +get_like_ranking(int $post_number = 5, bool $post_count = true , array $thumbnail = null, $category_id = null, $shorten_words = null, $custom_post_name = null) +``` -このプラグインをインストールすると、設定の項目に「WP Facebook Like Ranking」が追加されるので、そこからランキングの更新頻度等、細かい設定を行ってください。 +Ex) +In this case, There should be 10 articles which are "Movie" custom post type on your raking. +Second argument is `false`, thus like count of each artile does **not** show up. +Thumbnails are **15px** x **15px**. +If the title og the article is over 25 characters, it's gonne be compressed to 25 characters. +```php + +``` diff --git a/readme.txt b/readme.txt index eff99ce..973a47a 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,11 @@ === WordPress Facebook Like Ranking === -Contributors: MankinJp -Donate link: +Contributors: mankinjp +Donate link: https://www.patreon.com/taishikato Tags: plugin, facebook, like, ranking, popular Requires at least: 3.0 -Tested up to: 4.0 -Stable tag: 1.4.0 +Requires PHP: 5.6 +Tested up to: 5.2 +Stable tag: 2.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -24,28 +25,48 @@ With this plugin, you can use a your posts' ranking rated by the number of Faceb == Installation == -1. Download the plugin and extract its contents. -2. Upload `wp-facebook-like-ranking` to the `/wp-content/plugins/` directory. -3. Activate the plugin through the 'Plugins' menu in WordPress. -4. Create a ranking by pushing a create button through the 'Settings->WP Facebook Like Ranking' menu in WordPres. -5. Configure items. -6. 2 ways
-・As a widget:Go to the widget page and put on this widget.
-・With a function:Place `` in your templates. +## How to use -That's it! +### Create FB App +Here +https://developers.facebook.com/ +### Get FB App Token -1. プラグインをダウンロード、解凍します。 -2. `/wp-content/plugins/`ディレクトリにプラグインをアップロードします。 -3. プラグインを有効化します。 -4. 'Settings->WP Facebook Like Ranking'でCreateボタンを押して最初のランキングを生成します。 -5. 'Settings->WP Facebook Like Ranking'で細かい設定を行います。 -6. 最後は、2通りのやり方があります。
-ウィジェットとして使う場合:ウィジェットページで設定できます。
-関数を直接書く場合:``を、ランキングを出したいところにコピペします。 +You can get that here +https://developers.facebook.com/tools/explorer/ -完了! +### Set your FB App Token +You can see the setting of this plugin when you install it. Click it. +wp-fb-like-ranking-setting-image + +You will see the setting page like below. +Put your token in the form and hit the save button. +WPFBSETTINGPAGE-2 + +### Generate your ranking +All you need to do is just hit the "Create or Recreate" button. +WPFBSETTINGPAGE-2 + +### 🛠 Put code (or you can use wdget) +Put the code below whereever you would like to make the raking show up. +```php + +``` + +There are 6 parameters for this method. +```php +get_like_ranking(int $post_number = 5, bool $post_count = true , array $thumbnail = null, $category_id = null, $shorten_words = null, $custom_post_name = null) +``` + +Ex) +In this case, There should be 10 articles which are "Movie" custom post type on your raking. +Second argument is `false`, thus like count of each artile does **not** show up. +Thumbnails are **15px** x **15px**. +If the title og the article is over 25 characters, it's gonne be compressed to 25 characters. +```php + +``` ・more about a function @@ -76,6 +97,8 @@ It shows 10 posts of a category which has id 1. == Changelog == += 2.0.0 = +* change the Facebook API = 1.4.0 = * fix bug = 1.3.0 =