If I make a custom page and insert the code:
[bbp-forum-index]
then that page displays the forum index, but clicking into any forums redirects to the bbpress default forum location and once again displays blank pages.
As above, this only seems to happen with Rowling, I’ve tested other themes and everything works as expected.
Hi @pastparticiple,
Sorry for the late reply. I installed bbPress on my development environment to take a look at your issue, and this is a strange one.
Most of my themes (including Rowling) use a single file for displaying single posts/pages, called singular.php
. All post types should fall back to singular.php
when displaying a single post/page/custom post type, and if singular.php doesn’t exist, index.php
(used to display archive pages in Rowling, and most of my other themes) is used instead. More info here.
However, for some reason, bbPress skips over singular.php
when displaying forums and topics, and instead goes straight to index.php
. I tried modifying TwentySeventeen to use the same structure (replaced page.php
and single.php
with singular.php
), and the same thing happens – singular.php
gets skipped, and index.php is used instead. bbPress seems to not be a fan of singular.php
.
You can fix this in Rowling by creating a child theme, adding a file called page.php
to it and adding the following code to it:
<?php include( locate_template( 'singular.php' ) ); ?>
That will make bbPress use the singular.php
template to display all bbPress views.
— Anders
Edit: bbPress has a fix for this issue planned for version 2.6.
-
This reply was modified 4 years, 10 months ago by Anders Norén.
Thanks so much – exactly what I needed! Works perfectly.