Hi,
Here is an update. I am successfully able to create a dashboard/rewards page by creating a rewards.php file in themes/<child-theme>/tutor/dashboard. I have the following code in rewards.php file
<?php
/**
* Frontend Rewards Page
*
* @package Tutor\Templates
* @subpackage Dashboard
* @author JKYog <[email protected]>
* @link https://themeum.com
* @version 1.4.3
*/
use TUTOR\Input;
// Get the current user ID
$user_id = get_current_user_id();
// Get user points
$user_points = gamipress_get_user_points( $user_id );
// Get user achievements
$user_achievements = gamipress_get_user_achievements( $user_id );
?>
<div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24"><?php esc_html_e( 'Rewards', 'tutor' ); ?></div>
<div class="tutor-dashboard-content-inner">
<section class="user-rewards">
<div class="tutor-row tutor-mb-24">
<h2><?php esc_html_e( 'User Points:', 'tutor' ); ?> <?php echo $user_points; ?></h2>
</div>
<div class="tutor-row tutor-mb-24">
<h3><?php esc_html_e( 'Achievements:', 'tutor' ); ?></h3>
<?php echo do_shortcode( '[gamipress_user_achievements user_id="' . $user_id . '"]' ); ?>
</div>
<div class="tutor-row tutor-mb-24">
<h3><?php esc_html_e( 'Ranks:', 'tutor' ); ?></h3>
<?php echo do_shortcode( '[gamipress_user_ranks user_id="' . $user_id . '"]' ); ?>
</div>
</section>
</div>
However this is not processing gamipress shortcode and showing the results. Instead it is showing it as a text as follows:
Rewards
User Points: 0
Achievements:
[gamipress_user_achievements user_id="491"]
Ranks:
[gamipress_user_ranks user_id="491"]
Could you please guide where am I doing wrong?