Plugin Directory

Changeset 980798


Ignore:
Timestamp:
09/04/2014 11:58:07 PM (12 years ago)
Author:
minojiro
Message:

fancy new feature: now you can foo *and* bar at the same time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-author-ranking/trunk/Readme.txt

    r979828 r980798  
    19193. Open the setting menu, it is possible to set the execution condition.
    2020
    21 === Get the ranking data. ===
     21== Get the ranking data. ==
    2222
    2323The function "get_wpAuthorRanking()" return the ranking data stored in an array.
    2424This example prints ranking data.
    2525
    26 ```
    27 <?php
     26`<?php
    2827$rankingData = get_wpAuthorRanking();
    2928for ($i=0; $i < count($rankingData); $i++) {
     
    3433    echo '</li>';
    3534}
    36 ?>
    37 ```
     35?>`
    3836
    39 === Informations the ranking data has. ===
     37== Informations the ranking data has. ==
    4038
    4139* ID
     
    5149
    5250
    53 ==== Request options ====
     51Request options
    5452
    5553You have four options to require ranking data.
     
    6260This example gets columnist (post type 'column') ranking in September 2014.
    6361
    64 ```
    65 <?php
     62`<?php
    6663$rankingData = get_wpAuthorRanking(array('y'=>2014, 'm'=>9, 'cpt'=>'column'));
    6764for ($i=0; $i < count($rankingData); $i++) {
     
    7269    echo '</li>';
    7370}
    74 ?>
    75 ```
     71?>`
    7672
    7773
    78 === Count pv manually ===
     74== Count pv manually ==
    7975
    8076In default setting, page views are counted at single post page. You also have the function "count_wpAuthorRanking()" to count authors page views manually.
    8177This example counts id-3 user on 'column' post type.
    8278
    83 ```
     79`
    8480<?php
    8581count_wpAuthorRanking(array('user'=>3,'cpt'=>'column'));
    86 ?>
    87 ```
     82?>`
    8883
    8984
Note: See TracChangeset for help on using the changeset viewer.