dkraken
asked 7 years ago

Hello? I have myCred and I want to give users point when they answer a question. How can I achieve this? Thanks.

1 Answers
DominicStaff
answered 7 years ago

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/ 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