forked from Heydon/typical-theme-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-archive.php
36 lines (30 loc) · 1.09 KB
/
loop-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
35
36
<?php
/**
* The loop that displays category posts.
*
* @package WordPress
* @subpackage Typical
*/
?>
<div itemscope itemtype="http://schema.org/ItemList">
<ul>
<?php
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<li itemprop="itemListElement" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2>
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'typical' ), the_title_attribute( 'echo=0' ) ); ?>" itemprop="url" rel="bookmark">
<span itemprop="name"><?php the_title(); ?></span> <span aria-hidden="true">→</span>
</a>
</h2>
<p>
<time itemprop="datePublished" datetime="<?php the_date('Y-m-d'); ?>" pubdate><span aria-hidden="true">❏</span> <?php print get_the_date('d/m/Y'); ?></time> (by <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a>)
</p>
<div></div>
</li>
<?php endwhile; // end of the loop. ?>
</ul>
</div>
<?php
if ( $wp_query->max_num_pages > 1 ) :
typical_pagination();
endif;