-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
executable file
·34 lines (30 loc) · 1.48 KB
/
archive.php
File metadata and controls
executable file
·34 lines (30 loc) · 1.48 KB
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 get_header() ?>
<div class="container">
<div class="row">
<?php
$sidebar_location = fw_get_db_customizer_option('sidebar_setting');
if($sidebar_location === 'left') {get_sidebar();}
?>
<section id="site-content" class="site-content" role="region" aria-labelledby="page-title-<?php echo $post->ID ?>" data-paginate>
<?php the_archive_title('<h1 class="page-title" id="page-title-' . $post->ID .'">', '</h1>') ?>
<h2><?php _e('Artiklar', 'wally-theme') ?></h2>
<?php
do_action("wally_before_post_loop");
if(have_posts()): while(have_posts()): the_post();
get_template_part('parts/posts/loop');
endwhile ?>
<div class="pagination">
<?php the_posts_pagination(array(
'prev_text' => __( 'Föregående sida', 'wally-theme'),
'next_text' => __( 'Nästa sida', 'wally-theme'),
'screen_reader_text' => __( 'Sidnavigation' ),
)) ?>
</div>
<?php endif;
do_action("wally_after_post_loop");
?>
</section>
<?php if($sidebar_location === 'right') {get_sidebar();} ?>
</div>
</div>
<?php get_footer() ?>