Skip to:

How do I add a button in loops-replies php file ?

  • izzyian


    What I want to do is add a button ( which I will later style in my css) that will just take the user back to the forum.
    So for example a user leaves a reply on an example forum topic and this is their url

    Then the user clicks the button then this is the url

    What would be the php to make this button just make the user go back to there group forum page when clicked.

    I think this is the file I have to work with : bbpress/loop-replies.php

    I see this part which I think is what has to do with my question :

    <?php do_action( 'bbp_template_before_replies_loop' ); ?>
    <div id="topic-post-list" class="item-list" role="main">
    <div class="forum-head-reply-tools"><?php bbp_user_subscribe_link('before=&nbsp;'); ?> <?php bbp_user_favorites_link(); ?></div>
    <div class="clear"></div>
    		<?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    			<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    		<?php endwhile; ?>
    </div><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
    <?php do_action( 'bbp_template_after_replies_loop' ); ?>

    I found this that might be of use <?php bp_group_permalink(); ?>/forum

    I need help putting this all together to make it work, Iv tried but with no success

  • The topic ‘How do I add a button in loops-replies php file ?’ is closed to new replies.
Skip to toolbar