Pagination Problem
-
Hello,
I’m developing theme for my site where I made it look pretty much like this one here.
So how I did it:
First of all in bbpress.php (in the root)
<?php if (is_post_type_archive( 'forum' )) { ?> <div class="entry-content row"> <div class="forum-sidebar span3"> <h3 style="float:left;margin-bottom:11px">Forums:</h3> <?php bbp_get_template_part( 'bbpress/content', 'archive-forum-home' ); ?> </div> <div class="span7"> <h3 style="float:left">Recent Topics:</h3> <div class="bbp-new-topic-form" style="float:right"> <button id="bbp_forums_new_topic" class="btn"><i class="icon-edit"></i> New Topic</button> </div> <?php bbp_get_template_part( 'bbpress/content', 'archive-topic-home' ); ?> </div> </div> <?php } else { ?>
so in my achive-topic-home I use this template:
<?php if ( bbp_has_topics() ) : ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_topics_index' ); ?>
I didn’t touch much of the template files.
The problem is pagination.
For example second page in pagination links to http://example.com/page/2
where my forums are located at http://example.com/boards
where I try to navigate to http://example.com/boards/page/2 it gives me an 404.——
Also interesting what I found:
first archive-forum-home template:<div id="bbpress-forums" class="forum-news"> <?php do_action( 'bbp_template_before_forums_index' ); ?> <?php if ( bbp_has_forums() ) : ?> <?php bbp_get_template_part( 'loop', 'forums-home' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_forums_index' ); ?> </div>
so when I delete everything inside, now pagination points to
http://example.com/boards/forum/SOMEFORUMNAME/page/2/I don’t get how it chose this SOMEFORUMNAME..
Maybe you guys here have an idea what going on
If you need any more information I can provide, please askThanks
- You must be logged in to reply to this topic.