# gamipress/7.9.8/templates/inline-achievements.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-achievements.php
- Raw: https://pluginprobe.com/plugins/gamipress/7.9.8/raw/templates/inline-achievements.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-achievements.php#L10-L20`.

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

```
