where and how introduce mycred_query_rankings and mycred_rankings codes in wp
-
Hello,
I am new to this, and hardly anything of php. Management with wordpress and I just made my first online community for which I used mycred. Complies great everything I need. Mycred is an amazing plugin. Congratulations.The only thing I need is a page that displays the score and rank ordered form of the top 100 ranking.
Is to be inserted on the page the shortcode [mycred_leaderboard] and set its parameters.
But first I have to include:
MyCRED_Query_Rankings code: $ ranking = new myCRED_Query_Rankings ($ args);
$ Ranking-> get_rankings ();
$ Ranking-> result;
and
MYCRED_RANKINGS code: $ rankings = new myCRED_Rankings ($ args, $ result);
echo $ rankings-> get_leaderboard ();I’ve done ye entered these codes in the last line of my theme functions.php. But it is dropped and the site does not work.
My question is,
Can you could explain me, step by step, where and how introduce myCRED_Query_Rankings and MYCRED_RANKINGS codes in wordpress?
- The topic ‘where and how introduce mycred_query_rankings and mycred_rankings codes in wp’ is closed to new replies.