Reply To: Reply To: Reply To: How is the forum archive page generated?
Okay, I’ve been doing some digging and perhaps as expected, the theme Template page.php (the default WP Template) is being called to build the Archive Base page. I can edit the page.php in my child theme and customize from there (where it eventually calls the_content(), which apparently executes content-archive-forum.php to display the Forum “front page”), but that’s a brute-force method since page.php is the default Template for all pages. I want to create a Template explicitly for bbPress pages, which means I need a way to specify the Template to use on a per-page basis.
Normally this would be done by simply creating a Template (like page.php) and put it in your child theme directory, then select it for a specific page you want to apply it to using the wp-admin Edit Page -> Page Attributes -> Template pull down, save it and voila, your page uses your custom Template.
But with bbPress pages that are “partnered with a WordPress page” (per this topic discussion), this doesn’t work for the partnered page. The Template setting seems to be ignored, and only for bbPress pages partnered this way.
This may not be a show-stopper for me, but may be for others looking to customize the overall page Template for their bbPress pages. Is it a bbPress bug? I can’t tell, and hopefully I’m missing something painfully obvious, being new to installing/using bbPress.
Seems like there must be some kind of code frag in the plugin that does something like:
if (request to display (Archive Base | Topic Base) {
if ((Archive Base | Topic Base) is partnered with WP page) {
point the_content() at (content-archive-forum.php | content-archive-topic.php);
call default page Template;
}
}
JJJ or someone else in-the-know, can you comment on how the “partnering with a WordPress page” works? Where is this performed? Sorry if the question is naive, I’m just having trouble understanding how this partnering works at the Template execution level.
Many thanks.
Michael