forked from Jonnyauk/Wonderflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-content-archive.php
25 lines (19 loc) · 986 Bytes
/
loop-content-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
<?php
/**
* Wonderflux loop content archive template part
* Used when you dont have a category/taxonomy/tag/date/search type template part
*
* Customise this in your child theme by:
* - Using the Wonderflux hooks in this file - there are file specific and general ones
* - Copying this file to your child theme and amending - it will automatically be used instead of this file
*
* @package Wonderflux
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Read %s', 'wonderflux' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2>
<div class="entry-content">
<p><?php wfx_excerpt( 'limit=40&excerpt_end=...' ); ?></p>
<p><a class="button-sml" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'View %s', 'wonderflux' ), the_title_attribute( 'echo=0' ) ); ?>"><?php esc_html_e( 'View', 'wonderflux' ) ?></a></p>
</div>
</div>