Repository navigation
Expand file tree
/
Copy pathcustom-home.php
More file actions
63 lines (56 loc) · 2.33 KB
/
Copy pathcustom-home.php
File metadata and controls
63 lines (56 loc) · 2.33 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/* Template Name: Custom Home Page */
get_header();
?>
<div class="small-12 large-12 columns" id="content" role="main">
<?php /* Start loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; // End the loop ?>
</div>
</div> <!--closes row???-->
<div class="row" id="content-areas" data-equalizer>
<!-- <div class="large-4 small-12 columns featured_area left" role="main" data-equalizer-watch>
<h4>Using PressForward</h4>
<//?php $query = new WP_Query( 'cat=28&posts_per_page=1' ); ?>
<//?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<//?php the_content(); ?>
<//?php endwhile;
wp_reset_postdata();
else : ?>
<p><//?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<//?php endif; ?>
</div>-->
<div class="large-6 small-12 columns featured_area left" role="main" data-equalizer-watch>
<h4>Pilot Partners</h4>
<?php $query = new WP_Query( 'cat=29&posts_per_page=1' ); ?>
<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<?php the_content(); ?>
<?php endwhile;
wp_reset_postdata();
else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</div>
<div class="large-6 small-12 columns featured_area right" role="main" data-equalizer-watch>
<h4>News</h4>
<?php $query = new WP_Query( 'cat=-25,-28,-29&posts_per_page=5' ); ?>
<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="latestpost">
<!-- Display the Title as a link to the Post's permalink. -->
<h5><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
<!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
<p><?php the_time( 'F jS, Y' ); ?></p>
</div> <!-- closes the first div box -->
<?php endwhile;
wp_reset_postdata();
else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>