Run a php function if a predefined page is visited

Have a look at the is_page() conditional tag and at conditional tags in general. is_page() takes both post IDs as well as slugs (and more) as arguments, hence you can choose how you’d like to identify the page in question. With the above given ID, this, for instance, ought to work: if( function_exists(‘cp_alterPoints’) && is_page(24122) … Read more

How can i show Cubepoints ranks/points in bbpress replies

I found the solution of the problem, it goes like this: <td class=”bbp-reply-author”> <?php do_action( ‘bbp_theme_before_reply_author_details’ ); ?> <?php bbp_reply_author_link( array( ‘sep’ => ‘<br />’ ) ); ?> <!–Ranking –> <div class=”bbp-ranking”> <span class=”bbp-rank”><?php echo cp_module_ranks_getRank(bbp_get_reply_author_id()); ?></span><br /> <span class=”bbp-points”><?php echo ‘Reputação: ‘.cp_getPoints(bbp_get_reply_author_id()); ?></span> </div> <!–Ranking –> <?php do_action( ‘bbp_theme_after_reply_author_details’ ); ?> </td> in loop-single-reply.php