forked from sveinbjornt/lemur2013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop.php
28 lines (20 loc) · 777 Bytes
/
loop.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
<?php
if(is_home() || is_front_page()){
global $query_string;
parse_str( $query_string, $args );
$args['posts_per_page'] = 6;
query_posts($args);
}
?>
<?php if ( have_posts() ) : ?>
<div id="loop" class="list clear">
<?php while ( have_posts() ) : the_post(); ?>
<div <?php post_class('post clear'); ?> id="post_<?php the_ID(); ?>">
<?php get_template_part('post-header'); ?>
<div class="post-content">
<?php echo improved_trim_excerpt('', 60, 'Lesa meira'); ?>
</div>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>