-
Notifications
You must be signed in to change notification settings - Fork 176
/
full-width-page.php
executable file
·45 lines (31 loc) · 1.23 KB
/
full-width-page.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: Full Width Page
*/
?>
<?php get_header(); ?>
<div class="row">
<!-- Begin Post Loop, includes: date, author, category, comment, edit & post -->
<!-- Begin Error Message, display if no posts are found -->
<?php if ( ! have_posts() ) : ?>
<div class="twelve columns">
<h3>Not Found</h1>
<p>Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post?</p>
</div>
<?php endif; ?>
<!-- End Error Message -->
<article class="twelve columns">
<!-- Loop Through Posts -->
<?php while ( have_posts() ) : the_post(); ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<?php the_excerpt(); ?>
<?php else : ?>
<?php the_content('Read More'); ?>
<?php endif; ?>
<!-- End Looping Through Posts -->
<?php endwhile; ?>
</article>
<!-- End Post Loop -->
</div>
<?php get_footer(); ?>