forked from wycks/WP-Skeleton-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop.php
51 lines (37 loc) · 1.82 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
45
46
47
48
49
50
51
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
?>
<div class="content">
<div class="two-thirds column alpha">
<div class="main">
<?php while ( have_posts() ) : the_post(); ?> <!-- the Loop -->
<article id="post-<?php the_ID(); ?>">
<div class="title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title('<h3>', '</h3>'); ?></a> <!--Post titles-->
</div>
<?php the_content("Continue reading " . the_title('', '', false)); ?> <!--The Content-->
<!--The Meta, Author, Date, Categories and Comments-->
<div class="meta">
Date posted: <?php echo get_the_date(); ?>
| Author: <?php the_author_posts_link(); ?>
| <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
<p>Categories: <?php the_category(' '); ?></p>
</div>
</article>
<?php endwhile; ?><!-- End the Loop -->
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="nav-below">
<hr>
<div class="nav-previous"><?php next_posts_link(); ?></div>
<div class="nav-next"><?php previous_posts_link(); ?></div>
</nav><!-- #nav-below -->
<?php endif; ?>
<?php /* Only load comments on single post/pages*/ ?>
<?php if(is_page() || is_single()) : comments_template( '', true ); endif; ?>
</div> <!-- End Main -->
</div> <!-- End two-thirds column -->
</div><!-- End Content -->