bbp_is_topic_archive()

Check if we are viewing a topic archive.

Description

Return

(bool)

Source

File: bp-forums/common/template.php

function bbp_is_topic_archive() {

	// Default to false
	$retval = false;

	// In topic archive
	if ( is_post_type_archive( bbp_get_topic_post_type() ) || bbp_is_query_name( 'bbp_topic_archive' ) )
		$retval = true;

	return (bool) apply_filters( 'bbp_is_topic_archive', $retval );
}

Changelog

Changelog
Version Description
bbPress (r3251) 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.