• Resolved wallacelin

    (@wallacelin)


    Hello, this is a “pre-install question”. I’m using bbPress and Boss theme to build a forum. I’d like to display the forum’s topics as using bbPress shortcode [bbp-single-forum id=$forum_id] but with ratings for each topics. Is this possible using WP-PostRatings?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I can’t help you that as I don’t use BBPress and this plugin is not designed for BBPress.

    Hi @wallacelin

    Paste the follow code into your functions.php

    It will display rating shortcode after each topic.

    @gamerz thanks for this great plugin!

    /* Display Rating Form After Topic */
    function display_after_topic() {
    	if( get_post_type() == 'topic') {
    echo do_shortcode( '<div style="text-align:center;">[ratings]</div>' );
    	}
    }
    add_action ('bbp_theme_after_reply_content', 'display_after_topic') ;
    • This reply was modified 6 years, 6 months ago by u_Oi.
    Thread Starter wallacelin

    (@wallacelin)

    Thank you @arutam, that got the ratings to show up in single topic view! I wish there’s a way I can display it in the forum previews using bbPress’ shortcode, but alas this is beyond third-party plugins.

    And yes thanks @gamerz for the plugin itself!

    @wallacelin In fact, it is possible.

    I guess You will need to edit bbpress templates and paste rating shortcode within a php code.

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display Forum Topics with Ratings?’ is closed to new replies.