Hello? I have myCred and I want to give users point when they answer a question. How can I achieve this? Thanks.
1 Answers
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/ 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