-
Notifications
You must be signed in to change notification settings - Fork 3
/
blog.php
36 lines (36 loc) · 1.27 KB
/
blog.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
<?php
/*
Template Name: Blog Page
*/
?>
<?php get_header(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/CSS/blogStyle.css">
<div class='contentWrap'>
<aside id='blogAside' class='shadow'>
<div class="asideBorder">
<h2 class="smallHeadline">Recent Posts</h2>
</div>
<?php wp_get_archives( array ( 'cat' => '-9', 'type' => 'postbypost', 'limit' => '10', 'format' => 'custom', 'before' => '<li class="archives_list">', 'after' => '</li>' ) ); ?>
</aside><!--blogAside-->
<div id='loop'>
<?php $wp_query = new WP_Query("posts_per_page=10, &cat=-9");?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div class="blogBorder">
<h3 class='homesub fontImpact'>
<a class="blogTitle" href="<?php echo get_permalink (); ?>"><?php the_title();?></a>
</h3>
</div>
<section class='meta'>
<p><?php the_author();?> | <?php the_time('F j, Y');?></p>
</section>
<br />
<?php the_excerpt(); ?>
<a class="more_link" href="<?php the_permalink();?>">Read More</a>
<?php endwhile; ?>
<?php else : ?>
<p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
<?php endif; ?>
<?php wp_reset_query();?>
</div><!--loop-->
</div><!--/contentWrap-->
<?php get_footer(); ?>