-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop.php
45 lines (40 loc) · 1.52 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?
defined('ABSPATH') OR exit;
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
?>
<div class="content">
<div class="two-thirds column alpha">
<main id="main-content" class="main">
<? while ( have_posts() ) : the_post(); ?> <!-- the Loop -->
<article id="post-<? the_ID(); ?>">
<div class="title">
<a href="<? the_permalink(); ?>" title="<? the_title_attribute(); ?>"><? the_title('<h3>', '</h3>'); ?></a> <!--Post titles-->
</div>
<? the_content("Continue reading " . the_title('', '', false)); ?> <!--The Content-->
<!--The Meta, Author, Date, Categories and Comments-->
<? if(! is_page()) { ?>
<div class="meta">
Date posted: <? echo get_the_date(); ?>
| Author: <? the_author_posts_link(); ?>
| <? comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
<p>Categories: <? the_category(' '); ?></p>
</div>
<? } ?>
</article>
<? endwhile; ?><!-- End the Loop -->
<? /* Display navigation to next/previous pages when applicable */ ?>
<? if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="nav-below">
<hr>
<div class="nav-previous"><? next_posts_link(); ?></div>
<div class="nav-next"><? previous_posts_link(); ?></div>
</nav><!-- #nav-below -->
<? endif; ?>
<? /* Only load comments on single post*/ ?>
<? if(! is_page() || is_single()) : comments_template( '', true ); endif; ?>
</main> <!-- End Main -->
</div> <!-- End two-thirds column -->
</div><!-- End Content -->