bbp_topic_permalink( int $topic_id,  $redirect_to = '' )

Output the link to the topic in the topic loop

Description

Parameters

$topic_id

(int) (Optional) Topic id

$string

(Optional) $redirect_to Optional. Pass a redirect value for use with shortcodes and other fun things.

Source

File: bp-forums/topics/template.php

function bbp_topic_permalink( $topic_id = 0, $redirect_to = '' ) {
	echo esc_url( bbp_get_topic_permalink( $topic_id, $redirect_to ) );
}

Changelog

Changelog
Version Description
bbPress (r2485) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.