-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.php
More file actions
30 lines (23 loc) · 734 Bytes
/
loop.php
File metadata and controls
30 lines (23 loc) · 734 Bytes
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
<?php
/**
* Main Loop
*
* @author Conrad Muan <con.muan@gmail.com>
* @package hack_theme
* @subpackage templates
**/
?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<header>
<h1 class="the-title"><?php the_title(); ?></h1>
</header>
<?php the_content(); ?>
</article>
<?php endwhile; else: ?>
<article <?php post_class(); ?>>
<h1>404 - Not Found</h1>
<p>The content you were looking for was not found.</p>
<p><?php get_search_form(); ?></p>
</article>
<?php endif; ?>