Hello I use myCred and DW Q&A plugins.
in designwall.com , the points of users are shown near their names! how can I do that in my website?
Here is the code to get point from myCred
<?php if(function_exists('mycred_get_users_cred')) echo '<span class="sep">⋅</span><span class="author-bugget">'.mycred_get_users_cred(get_the_author_meta('ID')).' $tone</span>'; ?>
If you want to put this point next to author name. Please copy template files from <your-plugins-folder>/dw-question-answer/inc/templates/default/ into <your-themes-folder>/<your-themes>/dwqa-templates/ then put that code into your template files .
Hope this help!
Please login or Register to submit your answer