-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
49 lines (36 loc) · 1.42 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php get_header(); ?>
<section class="hero">
<div class="siteInfo contain">
<h1><?php bloginfo('name'); ?></h1>
<p><?php bloginfo('description'); ?></p>
</div>
</section>
<main class="main contain" id="main" role="main">
<?php include (TEMPLATEPATH . '/_/parts/categorylist.php' ); ?>
<div class="portfolio group" id="portfolio">
<?php
$exclude = get_cat_id('blog');
$args = array(
'category__not_in' => $exclude,
'posts_per_page' => '-1'
);
$wp_query = new WP_Query();
$wp_query->query($args);
?>
<?php
if ( $wp_query->have_posts() ) :
while ( $wp_query->have_posts() ) :
$wp_query->the_post();
?>
<div class="tile all-cat <?php foreach( get_the_category() as $cat ) { echo $cat->slug.'-cat ' ; } ?>">
<?php the_post_thumbnail('6x5'); ?>
<a href="<?php the_permalink(); ?>">
<h1><?php the_title(); ?></h1>
</a>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else: endif; ?>
</div>
</main>
<?php get_footer(); ?>