Skip to:

Pagination Problem

  • b a



    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 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>&nbsp;&nbsp;New Topic</button>
    			<?php bbp_get_template_part( 'bbpress/content', 'archive-topic-home' ); ?>
    <?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
    where my forums are located at
    where I try to navigate to 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' ); ?>

    so when I delete everything inside, now pagination points to

    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 ask


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar