How to get the total solved & unsolved questions?
For total solved questions
ap_total_solved_questions(); // solved questions.
for unsolved question you have to add this function:
https://gist.github.com/rahularyan/179ba38b28686e297b1f
Rahul Aryan commented
Yes, this will work too.
How I must call ap_total_unsolved_questions?
If I write the result is a large number that is not the unsolved questions.
The first one works perfectly. Thanks.
Edit:
I made this, and it’s works, what do you think, is a goog way to do it?
$total= ap_total_published_questions();
$solved = ap_total_solved_questions();
$notSolved = $total – $solved;