bbPress Voting


This simple plugin integrates with the bbPress plugin to add a new feature which allows users to vote up or down on topics and replies. Each topic and reply has a total score with an up arrow and a down arrow.

This plugin uses AJAX to save the vote on-the-fly without refreshing the page.

It’s also AMP compatible!

Visitors can only vote once on each topic or reply.

Capturi ecran

  • This is what the voting and score looks like.

  • Settings Page

  • Override voting and sorting on topics and replies on individual forums.


  1. Just install and activate

Întrebări frecvente

Are there other plugins like this?

No, and it’s the strangest thing. I was wanting a plugin to do this, and after much seaching, I came to the conclusion that it didn’t exist, so I developed one myself.

How to you change the settings?

In the WordPress admin area, go to Settings > bbPress Voting

How do you hook into the function that saves the vote to write custom code?

This hook fires after a new vote has been saved.

add_action( 'bbp_voting_voted', 'my_function_on_bbp_vote', 10, 3 );
function my_function_on_bbp_vote( $post_id, $direction, $score ) {
    // Do something
    // $post_id will be the ID of the topic or reply that was voted on
    // $direction will be 1 or -1 representing the upvote or downvote
    // $score will be the new total score

How do you allow voting only on certain forums?

Edit the forum, and you will see a metabox on the sidebar that will let you enable or disable voting and/or sorting just on that forum.

You can also write custom code to do it. This function in your child theme’s functions.php file will let you choose which forum IDs are allowed to have voting…

add_filter( 'bbp_voting_allowed_on_forum', 'allowed_voting_forums', 10, 2 );
function allowed_voting_forums( $allowed, $forum_id ) {
    if( in_array( $forum_id, array(123, 124, 125) ) ) {
        $allowed = true;
    } else {
        $allowed = false;
    return $allowed;

Can you allow administrators to vote repeatedly without limitations?

By default nobody can vote repeatedly on the same topic or reply, but you can enable this only for administrators by enabling the „Admin Bypass” setting or by adding this filter hook into your child theme’s functions.php file…

add_filter('sort_bbpress_admin_bypass', '__return_true');


3 aprilie 2020
Although I wish it had some options for placement. Not sure I like it above the author avatar.
31 iulie 2019
I love this plugin and is exactly what I needed however the system stopping double votes became very annoying when I tried to use it in conjunction with myCRED, because even when I cleared cache and cookies it still gave me already voted message. Could you please make it native with a simple script like: $topic_id = bbp_get_topic_id(); $user_id = bbp_get_topic_author_id( $topic_id ); mycred_add( 'upvote', $user_id, 1, 'upvote' );
10 octombrie 2018
Thanks, I found this plugin really useful and so simple to add. Just one question, is there any way of changing the arrows to words like "Helpful" "not helpful" ? Regards Clive
Citește toate cele 6 recenzii

Contributori și dezvoltatori

„bbPress Voting” este un software open-source. La acest modul au contribuit următoarele persoane.


Istoric modificări


  • Fixed forum-specific overrides when using the shortcode.


  • Added setting to for view-only scores on closed topics.
  • Fixed styling when using admin bypass


  • Fix bug with sort order of topics on a forum view.


  • Fix bug with sort order of topics on a forum view.


  • Fix bug with get_post_type() not working to get the reply ID on some themes.


  • New settings page! No more need for hooks.
  • Enable or disable voting on topics and/or replies.
  • Enable or disable sorting by votes on topics and/or replies.
  • Override voting and sorting on topics and replies on individual forums.


  • Bug fix with bbp_voting_allowed_on_forum hook.


  • Bug fix.


  • Removed needless specificity on jQuery selector


  • Fix bug that allowed illusion of voting repeatedly.
  • Added support for reversing your vote.


  • Don’t sort by votes when voting is not allowed on that forum.


  • Added action into the bbp_template_before_lead_topic hook.


  • Added action into the bbp_theme_before_topic_author_details hook.


  • Added vote tracking by user ID when logged in and fallback to IP when not logged in.


  • Fix CSS compatibility issue with bbPress 2.6 RC 7
  • Added filter hook for bbp_voting_only_replies


  • New features release! See the FAQs for several new hooks to access the new features.
  • Now AMP compatible
  • Double vote tracking now uses IPs rather than browser cookie
  • Your current vote shows with a green up arrow or a red down arrow
  • Show only on topics, not replies
  • Allow voting only on certain forums
  • New admin bypass filter


  • Another bug fix with sorting replies by voting score


  • Bug fix with sorting replies by voting score


  • Added filter, sort_bbpress_replies_by_votes, to enable a new feature that sorts replies by voting score


  • Added filter, bbp_voting_show_labels


  • Removed unlimited voting from administrators


  • Fixed javascript bug with repeated votes
  • Added Helpful and Not Helpful labels with filters to modify them


  • Added hover effect to show the up and down votes


  • Added tracking of up votes and down votes
  • Added hover style on arrows
  • Bug fixes


  • Fixed jquery bug


  • Bug fix with nopriv AJAX


  • Bug fix


  • Initial release