-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
31 lines (28 loc) · 876 Bytes
/
index.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
<?php
global $query_string; //We now have access to the original WordPress Query
$exclude = s_build_cat_exclude(); //Build the list of categories to exclude
if($exclude)
$exclude = '&cat=' . $exclude;
$posts = query_posts($query_string . $exclude); //Tell WordPress to exclude some categories, if required.
if(have_posts()) : while(have_posts()) : the_post();
?>
<section class="entry group">
<p class="post-date">
<span class="day"><?php the_time('d'); ?></span>
<br>
<span class="month"><?php the_time('F'); ?></span>
</p>
<h1 class="post-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h1>
<?php the_content(); ?>
</section>
<?php
endwhile;
else: //If no posts are present
?>
<section class="entry group">
<p><?php _e('No posts were found.', 's'); ?></p>
</section>
<?php endif;?>
<?php include("wrapper.php"); ?>