I have tried a few different options out there but have not found the proper way to set this up.
Does anyone have any information on creating a bridge between MyCRED and DW: Questions and Answers for both Badges and Points?
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!
Could you elaborate in more detail?
I followed your instructions but in my themes folder i do not see a /dwqa-templates/ folder.
You need to create a new folder with named “dwqa-templates” in your theme folder then copy the template file that you want to add the Mycred code in the /dw-question-answer/templates/ Then open the files to add the code.
you can refer here: https://www.designwall.com/guide/dw-question-answer-plugin/style-integration/
Here is the code in the templates.php folder as per instructions. Still doesnt look like it is working
Please send me username & password of your site or FTP account for further checking, I will help you resolve it.
I have helped you resolve this issue, you can check your site now.
See the screenshot: http://prntscr.com/ioejsz
Thank you @dominic
@dominic, upon looking into your fix it appears there is some other issues with the posts itself
https://imgur.com/nPoEXzk
There is also no hook showing in the log for Mycred
What do you mean?
I have helped you add the code to the content-single-question.php, content-single-answer.php and content-comment.php, you can check your fine now.
Please login or Register to submit your answer