-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentry-summary.php
executable file
·25 lines (25 loc) · 1.48 KB
/
entry-summary.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 if( get_field('featured_post') ){ echo '<div class="item item-2">'; } else { echo '<div class="item">'; } ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php if( get_field('bz_image') ){ ?>
<img src="<?php the_field('bz_image');?>" />
<?php } else { ?>
<div class="thumbnail"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></div>
<?php } ?>
<h4 class="title"><?php the_title(); ?></h4>
<h6 class="subtitle">
<?php if( get_field('bz_excerpt') ){ ?>
<?php the_field('bz_excerpt'); ?>
<?php } else { ?>
<?php remove_filter( 'the_excerpt', 'wpautop' ); the_excerpt(); add_filter( 'the_excerpt', 'wpautop' ); ?>
<?php } ?>
</h6>
</a>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php if( get_field('bz_button') ){ ?>
<button class="button"><?php the_field('bz_button'); ?></button>
<?php } else { ?>
<button class="button">check it out</button>
<?php } ?>
</a>
</div>
<?php if( is_search() ) { ?><div class="entry-links"><?php wp_link_pages(); ?></div><?php } ?>