forked from nicolas-van/wordpress-simple-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory-blog.php
More file actions
34 lines (23 loc) · 693 Bytes
/
Copy pathcategory-blog.php
File metadata and controls
34 lines (23 loc) · 693 Bytes
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
<?php
/*
Use a custom template for the main blog category, rather than the archive
template. Mostly this just gets rid of the "Category: Foo" block at the top
*/
?>
<?php get_template_part( 'content', 'standard-top' ); ?>
<header class="sr-only">
<div class="block-header">
<h1>
Blog
</h1>
</div>
</header>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php simple_boostrap_display_post(['multiple_on_page' => true]); ?>
<?php endwhile; ?>
<?php simple_boostrap_page_navi(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'not-found' ); ?>
<?php endif; ?>
<?php get_template_part( 'content', 'standard-bottom' ); ?>