myCRED_Ratings class for more information." />myCRED_Ratings class for more information." />

mycred_rankings

Codex / / Functions / mycred_rankings

Navigation:

  1. Description
  2. Usage
  3. Parameters
  4. Example
  5. Return

Description

Returns the myCRED_Rankings object. See the myCRED_Ratings class for more information.

 

Usage

<?php $rankings = mycred_rankings( $args ); ?>

 

Parameters

  • args (string|array)
    Optional parameters for the rendered list.

 

Example

Example: Create a top 10 leaderboard.

$rankings = mycred_rankings( 'number=10' );
if ( $rankings->have_results() ) {
	echo 'Top 10 Leaderboard';
	$rankings->display();
}

 

Return

Last edited July 2, 2014