bbp_the_topic()

Loads up the current topic in the loop

Description

Return

(object) Topic information

Source

File: bp-forums/topics/template.php

function bbp_the_topic() {
	return bbpress()->topic_query->the_post();
}

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.