md-tsai
asked 11 years ago

I’m using the plugin “dw questions answer” and “Social login for wordpress” at the same time. The “Social Sharing” function in “Social login for wordpress” is enabled for posts, but in answers, I also see the sharing icon in answers. It seems dwqa also use post as answer. Is it possible to disable the sharing icon in answers?

3 Answers
DominicStaff
answered 11 years ago

Hello MD !
Please send me your site for further checking.

MD Tsai
replied 11 years ago

http://106.186.123.73/?dwqa-question=question-for-dw-team you can see there are share it now before and after my question and answer. I’ve done the translation in Chinese, if you have any question, please give me comment

md-tsai
answered 11 years ago

I did a patch on LoginRadius_socialShare.php to filter dwqa_queston and dwqa_answer:
 
// For filter dwqa_question
$lrMeta = get_post_meta( $post->ID, ‘_dwqa_status’, true );
if ( strlen( $lrMeta) > 0 ) {
return $content;
}
// For filter dwqa_answer
$lrMeta = get_post_meta ($post->ID, ‘_question’, true);
if ( strlen ($lrMeta) > 0 ) {
return $content;
}
If there is better approach, please give me advise.

DominicStaff
answered 11 years ago

Hi MD ! Your approach is awesome. I have checked your site and I think you have resolved your own issue. I will mark your question as “Resolved”.

Powered by DW Question & Answer Pro