-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
executable file
·50 lines (42 loc) · 918 Bytes
/
archive.php
File metadata and controls
executable file
·50 lines (42 loc) · 918 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Archive template file.
*
* Renders category, tag, and other archive listing pages.
*
* @package tailwind_wordpress_template
* @since 1.0.0
*/
if (!defined('ABSPATH')) {
exit;
}
get_header();
?>
<main
id="main"
class="site-main"
>
<div class="container mx-auto px-4 py-12 flex flex-col xl:flex-row gap-10">
<div class="post-list flex-1">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
get_template_part('content', get_post_format());
endwhile;
the_posts_navigation();
else :
?>
<div class="no-posts-found">
<p class="text-lg"><?php esc_html_e('No content found.', 'tailwind_wordpress_template'); ?></p>
</div>
<?php endif; ?>
</div>
<div class="sidebar max-w-[300px]">
<?php get_sidebar(); ?>
</div>
</div>
</main>
<?php
get_footer();
?>