vahid
asked 6 years ago

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?

1 Answers
BigHug
answered 6 years ago

Hi vahid, 
Here is the code to get point from myCred 

<?php if(function_exists('mycred_get_users_cred')) echo '<span class="sep">&sdot;</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!

Powered by DW Question & Answer Pro