Support » Plugin: YARPP - Yet Another Related Posts Plugin » Why related topics doesn’t show up under topics and replies

  • Resolved truth4vahid

    (@truth4vahid)


    Why related topics doesn’t show up under topics and replies on bbPress-based website?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hi @truth4vahid, I haven’t used bbPress much, but I see what you’re saying: even when you select for YARPP to add related posts to bbPress topics, they don’t appear.
    I think bbPress uses a very custom template for displaying each topic, whereas YARPP is expecting more of a traditional post look.
    I’m not sure if YARPP will be able to work out-of-the-box with bbPress topics, as we’d all like it to. It will take some investigation.
    For the time being, I think you’ll need to modify the templates bbPress uses to display a post, and insert YARPP’s shortcode in it (see our installation instructor’s section on shortcodes).

    Does that make sense?

    Plugin Author Michael Nelson

    (@mnelson4)

    actually, I looked into it more, and this code snippet should add YARPP related content to topics:

    
    add_action(
    'bbp_template_after_single_topic',
    function(){
    	global $yarpp;
    	echo $yarpp->the_content('');
    });
    

    You can try adding that to your theme’s functions.php file. Please let me know what you think.

    However, adding YARPP related posts to each reply seemed like it would make the site really, really cluttered, so it didn’t seem like a good idea. If you disagree, please let me know your thoughts.

    Plugin Author yarpp

    (@jeffparker)

    Hi @truth4vahid we had added official bbPress support in the latest YARPP release (v5.11.0)!

    https://wordpress.org/plugins/yet-another-related-posts-plugin/#developers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Why related topics doesn’t show up under topics and replies’ is closed to new replies.