-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
37 lines (33 loc) · 935 Bytes
/
home.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
<?php
/**
* @package WordPress
* @subpackage Catt_Theme
*/
get_header('home'); ?>
<!-- content -->
<div class="content">
<?php get_sidebar(); ?>
<section class="three-fourths main-content-container">
<!-- blog -->
<!-- <section class="blog"> -->
<?php if ( is_home() ) {
query_posts( 'cat=-21' );
}
else {
query_posts( array ( 'category_name' => 'my-category-slug', 'posts_per_page' => -1 ) );
} ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class('excerpt'); ?>>
<header><h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1></header>
<section class="meta"><?php entry_meta(); ?></section>
<?php the_excerpt(); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<p>There are no blog posts.</p>
<?php endif; ?>
<!-- </section> -->
</section>
<div class="clearfix"></div>
</div>
<?php get_footer(); ?>