-
Notifications
You must be signed in to change notification settings - Fork 0
/
homepage.php
45 lines (42 loc) · 1.32 KB
/
homepage.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
<?php
/*
Template Name: Homepage
*/
get_header(); ?>
<section class="main-content">
<?php
$args = array( 'posts_per_page' => 1);
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<article class="post feature container">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<div class="entry-meta caps">
<?php bugcrowd_entry_meta(); ?>
</div>
<?php the_post_thumbnail(); ?>
<div class="entry-summary delta">
<?php the_excerpt(); ?>
</div>
</article>
<?php endforeach; ?>
<a href="#" id="more-content"><span>But wait, there's more</span></a>
</section><!-- #primary -->
<section class="secondary-content">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 12,
'offset' => 1,
'paged' => $paged,
);
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endforeach; ?>
<?php bugcrowd_content_nav() ?>
</section>
<?php get_footer(); ?>