add_filter( 'the_content', 'mycred_rank_progress_bar_in_bottom' ); function mycred_rank_progress_bar_in_bottom( $content ) { global $post; if ( $post->post_type == 'mycred_rank' && function_exists( 'mycred' ) ) { $mycred = mycred(); $min = get_post_meta( $post->ID, 'mycred_rank_min', true ); $max = get_post_meta( $post->ID, 'mycred_rank_max', true ); ob_start(); ?>

This rank requires a minimum token earnings of format_creds( $min ); ?>.

get_users_balance( get_current_user_id() ); ?>
Your rank progress
$min && $users_balance > $max ) { $progress = number_format( 100, 1 ); $options = ''; } elseif ( $users_balance < $min ) { $progress = number_format( 0, 1 ); $options = ''; } echo do_shortcode( '[vc_row][vc_column width="1/1"][vc_progress_bar values="' . $progress . '|' . get_the_title() . '" bgcolor="custom" ' . $options . ' custombgcolor="#E74C3C" title="" units="%"]
' . $mycred->format_creds( $min ) . '
' . $mycred->format_creds( $max ) . '
[/vc_column][/vc_row]' ); endif; ?>