-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
archive-forum.php
38 lines (26 loc) · 1.31 KB
/
archive-forum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php get_template_part( 'header' ); ?>
<?php get_template_part( 'template-parts/header/header-basic' ); ?>
<div id="main">
<div class="inner">
<div id="primary-wide">
<div id="content-wrapper">
<div id="content-wide">
<?php get_template_part( 'template-parts/content/breadcrumbs' ); ?>
<h1><?php $forum_page = get_page_by_path( 'forum' ); echo get_the_title( $forum_page ); ?></h1>
<?php $forum_page = get_page_by_path( 'forum' );
$forum_page_content = apply_filters('the_content', $forum_page->post_content);
echo $forum_page_content; ?>
<?php get_template_part( 'template-parts/content/pagination' ); ?>
<div class="clear"></div>
</div><!-- content-padded -->
</div><!-- content-wrapper -->
<div class="clear"></div>
</div><!-- primary-wide -->
<div class="clear"></div>
</div><!-- inner -->
</div><!-- main -->
<?php get_template_part( 'footer' ); ?>
<!-- https://bbpress.org/forums/topic/page-php-as-template/ -->
<!-- https://bbpress.org/forums/topic/how-do-i-get-bbpress-pages-to-use-a-specific-page-template-in-wordpress/ -->
<!-- https://bbpress.org/forums/topic/force-bbpress-to-use-different-template-then-page-php/ -->
<!-- https://wordpress.stackexchange.com/questions/102841/how-to-get-page-id-of-a-page-using-page-slug -->