Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3638

Reply To: How to reset loop? 2 loops on 1 page

$
0
0

On the main content (url: forums/topic-tag/android/) is loaded content-archive-topic.php template with following code:
<?php bbp_get_template_part( 'loop', 'topics' ); ?>

loop-topics.php contains

<?php while ( bbp_topics() ) : bbp_the_topic(); ?>

			<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>

		<?php endwhile;
		wp_reset_query();?>

So it loads topics with android tag.

On the sidebar I have this code

if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'paged' => 1, 'posts_per_page' => $number_of_topics ) ) ) :
		bbp_get_template_part( 'loop', 'mytopics' );
	else :
		bbp_get_template_part( 'feedback', 'no-topics' );
	endif;

It should load all recent topics from all forums but it loads topics with android tag, and it happens when I’m on this page forums/topic-tag/android/


Viewing all articles
Browse latest Browse all 3638

Trending Articles