Custom Breadcrumbs (what URL to use for forum)
-
Hello,
I’ve been having issues with breadcrumbs, and gone through various mechanisms to get them working efficiently with no joy.
My needs are simple, so looking to create a simple button in my single topic template to go back to the forum the topic is a part of.
Can anyone suggest the best URL and code to use?
/ Background:
– I have created multiple single forums
– I have then created multiple WP pages, and used the single forum shortcode to embed the forum in the page
– I’d like to include one button at the top of the topic, that simply takes the user back to the relevant page that is hosting that particular forum (not the bbP forum page)/ Location of code:
I am guessing (non-coder) that the best location for this code would be as follows (within content-single-topic.php). Is this correct? (see code below)
<?php/**
* Single Topic Content Part
*
* @package bbPress
* @subpackage Theme
*/?>
/* BUTTON HERE */
<div id="bbpress-forums">
<?php bbp_breadcrumb(); ?>
<?php do_action( 'bbp_template_before_single_topic' ); ?>
Cheers,
Michael
- You must be logged in to reply to this topic.