ap_down_vote() and ap_up_vote() not work.
Hello, sorry for bother you. I Want to get numbers of Up votes and Down votes in question page.
<?php echo ap_net_vote() ?> work
but i just want to show exact numbers of Up votes and Down votes so people could know clearly.
I’ve tried ap_down_vote() and ap_up_vote() but it return nothing.
Can you please help me?
Rahul Aryan selected answer
Hello Dao,
Try this:
ap_count_vote(false, 'vote_up', QUESTION_ID); ap_count_vote(false, 'vote_down', QUESTION_ID);
Rahul Aryan commented on answer
Đào Hoàng commented
YEAHHHHHHHHHHH! thank you so much.
Your code will get all Upvote from All question but
base on your answer I have done with this solution
ap_meta_total_count(‘vote_down’,get_the_ID())
Thank you again. this is the 2nd time you guys help me. I’m really really appreciate your time.
Rahul Aryan commented
You are most welcome.
Captain?