-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathpage-explore.php
58 lines (47 loc) · 1.37 KB
/
page-explore.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
*
* Template Name: Explore Page
*
* Description: The template for displaying the Explore page, which displays search, recent posts, categories, and archives.
*
* @package Decode
*/
__( 'Explore Page', 'decode' );
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="explore-page">
<div id="search" class="widget search">
<?php get_search_form(); ?>
</div>
<div class="post-lists">
<div id="recent_posts" class="widget recent-posts">
<h1 class="widget-title"><?php esc_html_e( 'Recent Posts', 'decode' ); ?></h1>
<ul>
<?php $recent_posts = wp_get_archives( array(
'type' => 'postbypost',
'limit' => 5,
'format' => 'html',
) ); ?>
</ul>
</div>
<div id="archives" class="widget archives">
<h1 class="widget-title"><?php esc_html_e( 'Archives', 'decode' ); ?></h1>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</div>
<div id="categories" class="widget categories">
<h1 class="widget-title"><?php esc_html_e( 'Categories', 'decode' ); ?></h1>
<ul>
<?php wp_list_categories( array(
'title_li' => '',
) ); ?>
</ul>
</div>
</div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>