-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry-content.php
More file actions
51 lines (42 loc) · 1.38 KB
/
entry-content.php
File metadata and controls
51 lines (42 loc) · 1.38 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="entry-content">
<?php if ( has_post_thumbnail() ) : ?>
<div class=" hero hero--post " style="background-image: url('<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'full', false ); echo $src[0] ?>')">
<div class="hero__text" >
<h1 class=" hero__title--post entry-title fade-letters"><?php the_title(); ?></h1>
</div>
</div>
<div class="post__content " >
<?php the_content(); ?>
</div>
<?php endif; ?>
<!-- list relevant practioners -->
<div class="post__artists-list-wrapper">
<h2 class="title-center"> Associated Artists </h2>
<div class="post__artists-list">
<?php
$loop = new WP_Query( array( 'post_type' => 'tappingbones_artist', 'posts_per_page' => 10,
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => $post->post_name,
),
)
) );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="entry-content artist artist--post" >
<a href="<?php echo get_home_url() ?>/tb-artists" rel="#bio-<?php echo $post->ID ?>">
<img src="<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'medium', false ); echo $src[0] ?>)"/>
<h2 class="entry-title">
<?php the_title() ?>
</h2>
<p>
<?php the_excerpt() ?>
</p>
</a>
</div>
<?php endwhile; ?>
</div>
</div>
</div>