bbp_topics

Whether there are more topics available in the loop.

Description

(object) bbp_topics(); 

Returns (object)

Topic information


Usage

  1. if ( !function_exists( 'bbp_topics' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/topics/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_topics(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/topics/template.php  
  1. function bbp_topics() { 
  2.  
  3. // Put into variable to check against next 
  4. $have_posts =bbpress)->topic_query->have_posts(); 
  5.  
  6. // Reset the post data when finished 
  7. if ( empty( $have_posts ) ) 
  8. wp_reset_postdata(); 
  9.  
  10. return $have_posts;