ap_down_vote() and ap_up_vote() not work.

Solved3.77K viewsWordPress
1

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?

selected answer
1

Hello Dao,

Try this:

ap_count_vote(false, 'vote_up', QUESTION_ID);
ap_count_vote(false, 'vote_down', QUESTION_ID);
commented on answer

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.

You are most welcome.