How is the forum archive page generated?
Hi there — I’m running WP 3.4.2, bbPress 2.2.2 & buddypress 1.6.1. Overall, I’m quite happy with the installation, and I’ve done a fair amount of customization on my site to give it a nice L&F. I’ve been using a child theme to do all customization, and it’s been reasonably straightforward, but not trivial. That said, many thanks to all the bbPress folks who are putting lots of time in on this plugin — it’s a great platform.
Onto my question: How is the main forum archive page generated? I want to create my own template to generate this page, and I’ve been stumped trying to trace the sequence of files/calls used to create it.
For context, I have the Forums Base set to “member-area/forums” in Settings -> Forums. I can go to http://mysite/member-area/forums and see the standard listing of all the forums in a table. Perfect, just what I want.
That said, how exactly is this page created? Which files & calls in the plugin create it? I’ve found loop-forums.php in …/plugins/bbpress/templates/default/bbpress/which is used to create the table within the page (apparently called as the_content() somewhere), but I can’t find the code blocks that create the header, footer, etc. Is there a single template page used to create the Archive Base page?
Apparently this page is generated regardless of whether there is an existing page (permalink) to the same permalink used as Archive Base. Nifty, but I want to use my own template (the whole thing) for creating the Archive Base page.
Even when I create a page with a permalink address the same as Archive Base and insert a [bbp-forum-index] in the post content, I can’t seem to select a Template from the Page Attribute pull down that has any effect on the creation of the Archive Base page. It’s like it’s hard wired to use a very specific template — that I can’t find in the directory tree.
Long winded, but I hope that conveys what I’m trying to do. In short, I just want to create my own template for creating the Archive Base page. Any pointers are appreciated.
You must be logged in to reply to this topic.