-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
41 lines (37 loc) · 901 Bytes
/
sidebar.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
<aside id="sidebar">
<?php get_search_form(); ?>
<div id="categories">
<h4><?php _e("Categories") ?></h4>
<ul>
<?php wp_list_categories(array(
'title_li' => '',
'orderby' => 'name'
)); ?>
</ul>
</div>
<div id="archive">
<h4><?php _e("Archives") ?></h4>
<ul>
<?php
$args = array(
'type' => 'monthly',
'limit' => '',
'format' => 'html',
'before' => '',
'after' => '',
'show_post_count' => false,
'echo' => 1,
'order' => 'DESC',
'post_type' => 'post'
);
wp_get_archives( $args );
?>
</ul>
</div>
<?php if(get_the_tag_list()): ?>
<div id="tags">
<h4><?php _e("Tags") ?></h4>
<?php echo get_the_tag_list('<ul><li>','</li><li>','</li></ul>'); ?>
</div>
<?php endif ?>
</aside>