Incorrect step description from badgeos_render_achievement
-
So I’m trying to get more than just links to display for the achievement steps on the website I’m working on. I’ve finally got it almost there, but it’s displaying the content and points from the page’s achievement instead of the step’s content and points.
<?php $badge_id = get_the_ID(); $achievement_steps = badgeos_get_required_achievements_for_achievement( $badge_id ); ?> <table> <?php foreach ($achievement_steps as $achievement){ $achievement_id = get_the_ID($achievement); ?> <tr> <td> <?php //echo badgeos_achievement_points_markup( $achievement->ID ) ?> <?php foreach ($achievement as $key => $value) { //echo "<p>" . $key . " : " . $value . "</p>"; } ?> </td> <td> <?php echo badgeos_render_achievement( $achievement->ID ) ?> <!-- or ?[badgeos_achievement id=$achievement_id] --> </td> <td> <!-- [badgeos_submission achievement_id=$achievement_id] --> </td> </tr> <?php } ?> ? ? ? ? ? ? ? ?</table>
<img src=”https://prntscr.com/9h5e9m” />
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Incorrect step description from badgeos_render_achievement’ is closed to new replies.