The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Show Comment number in other post type
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Aug 13, 2021 7:40 am
(@hai991dk)
Eminent Member
Joined: 6 years ago
Hello team!
I'm using the "DW Question & Answer" plugin, but I disabled the "Answer/Comment" feature of this plugin to use comment feature of WPdiscuz plugin.
So I want to show exact number of comments based on WPdiscuz plugin.
Below is the code that shows the comment number of the DW Question Answers plugin, but it is not working correctly.
Please fix it to suit WPDiscuz, many thanks team, I enjoyed using the WPdiscuz plugin.
<span class="dwqa-answers-count">
<?php $answers_count = dwqa_question_answers_count(get_the_ID()); ?>
<?php printf( __( '<strong>%1$s</strong> answers', 'dwqa' ), $answers_count ); ?>
</span>
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Aug 13, 2021 2:25 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi @hai991dk,
Please try this code:
<span class="dwqa-answers-count">
<?php $answers_count = dwqa_question_answers_count(get_the_ID()) -> get_comments_number(get_the_ID()); ?>
<?php printf( __( '<strong>%1$s</strong> answers', 'dwqa' ), $answers_count ); ?>
</span>
(@hai991dk)
Joined: 6 years ago
Eminent Member
Posts: 12
Aug 14, 2021 5:50 am
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@asti it working, thanks team