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

Reply To: Default template confusion?

$
0
0

@netweb Thank you very much! I will try this.

The only thing I’m kind of left confused about is how the index for topics works? In the Amending bbpress templates codex entry it states the templates for forums work like this:

The index for the forums starts by using

content-archive-forum.php

If you open this up you will see that it them calls a further template by using the function bbp_get_template_part

<?php bbp_get_template_part( ‘loop’, ‘forums’ ); ?>

(this translates to loop-forums.php)

this in turn calls

<?php bbp_get_template_part( ‘loop’, ‘single-forum’ ); ?>

(this translates to loop-single-forum)

and so on.

So the template hierarchy for the the forums index would look like this:
archive-forums.php>content-archive-forums.php>loop-forums.php>loop-single-forums.php

Would the template hierarchy for the topics index look like this:
archive-topics.php>content-archive-topics.php>loop-topics.php>loop-single-topics.php

Thanks again for taking the time to help me!


Viewing all articles
Browse latest Browse all 3669

Trending Articles