Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Jul 10, 2021 10:05 pm
Hello I have deleted the people who are online now from the forum stats in the footer
And I added this instead
<?php wpforo_print_number(wpfval(WPF()->current_object['user'], 'questions'), true) ?>
But I want the number of questions for all forums
What is the correct code?
5 Replies
Jul 11, 2021 8:59 am
i have add
<?php echo wpforo_print_number($stat['questions']) ?>
but not working
Jul 11, 2021 9:28 am
Questions & Answers layout
forum.php
<div class="wpforo-forum-stat-questions"><?php echo wpforo_print_number($counts['topics']) ?></div> <div class="wpforo-forum-stat-answers"><?php echo wpforo_print_number(WPF()->topic->get_sum_answer($data)) ?></div> <div class="wpforo-forum-stat-posts"><?php echo wpforo_print_number($counts['posts']) ?></div>
try this one
<?php echo wpforo_print_number($counts['topics']) ?>
Jul 11, 2021 12:01 pm
It was worth a try 😉Â
I don't use the Questions & Answers layout,
therefore unfortunately cannot test it
Jul 11, 2021 12:45 pm
Thank you for trying to help me 🌹Â
I will look for other solutions