# gamipress/7.9.8/templates/inline-ranks.php

GamiPress – Gamification plugin to reward points, badges &amp; ranks in WordPress, now with AI, version 7.9.8. 27 lines.

- Page: https://pluginprobe.com/plugins/gamipress/7.9.8/code/templates/inline-ranks.php
- Raw: https://pluginprobe.com/plugins/gamipress/7.9.8/raw/templates/inline-ranks.php
- Modified: 2026-07-13T13:39:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gamipress/7.9.8/code/templates/inline-ranks.php#L10-L20`.

```php
<?php
/**
 * Inline Ranks template
 *
 * This template can be overridden by copying it to yourtheme/gamipress/inline-ranks.php
 * To override a specific rank type just copy it as yourtheme/gamipress/inline-ranks-{rank-type}.php
 */
global $gamipress_template_args;

// Shorthand
$a = $gamipress_template_args; ?>

<span class="gamipress-inline-ranks">

    <?php foreach( $a['ranks'] as $index => $rank_id ) :
        $a['id'] = $rank_id; ?>

        <?php // Display the rank inline ?>
        <?php echo gamipress_inline_rank_shortcode( $a ); ?>

        <?php // Separator ?>
        <?php echo ( $index !== ( count( $a['ranks'] ) -1 ) ? '<span class="gamipress-inline-ranks-separator">, </span>' : '' ); ?>

     <?php endforeach; ?>

</span>

```
