forked from AthelasPeru/oniros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
34 lines (34 loc) · 1.05 KB
/
archive.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
<?php get_header(); ?>
<main id="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<h1><?php post_type_archive_title(); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" role="article">
<header>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?></a></h3>
</header>
<section>
<?php the_excerpt(); ?>
</section>
<footer>
<a href="<?php the_permalink() ?>">See more</a>
</footer>
</article>
<?php endwhile; ?>
<!-- something -->
<?php else : ?>
<article id="post-not-found" class="hentry cf">
<header>
<h1>Oops, Post Not Found!></h1>
</header>
<section>
<p>Uh Oh. Something is missing. Try double checking things.</p>
</section>
<footer>
<p>This is the error message in the custom posty type archive template.</p>
</footer>
</article>
<?php endif; ?>
</main>
<?php get_sidebar(); ?>
<?php get_footer(); ?>