-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
53 lines (51 loc) · 1.82 KB
/
search.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php get_header() ?>
<div class="index-view">
<span><a href="<?php echo get_permalink('5') ?>">Index</a></span>
<span class="active"><a href="<?php echo get_permalink('66') ?>">Preview</a></span>
</div>
<?php get_template_part('results-search-term') ?>
<?php if ( have_posts() ) : ?>
<div class="index-wrapper index-preview-wrapper">
<div class="index-header">
<div class="column-artist column active" data-filter=".column-artist"><span><i>Artist</i></span></div>
<div class="column-author column" data-filter=".column-author"><span><i>Author</i></span></div>
<div class="column-essay column" data-filter=".column-essay"><span><i>Essay Preview</i></span></div>
<div class="column-other column" data-filter=".column-topic"><span><i>Topic</i></span></div>
</div>
<div class="index-body">
<?php
while ( have_posts() ) :
the_post();
?>
<div class="index-row">
<div class="column-artist column active">
<a href="<?php the_permalink() ?>" data-essay="true">
<?php the_field('artist_name') ?>
</a>
</div>
<div class="column-author column">
<a href="<?php the_permalink() ?>" data-essay="true">
<?php the_field('author_name') ?>
</a>
</div>
<div class="column-essay column">
<a href="<?php the_permalink() ?>" data-essay="true">
<?php the_title() ?>
</a>
<br><br>
<?php the_excerpt() ?>
</div>
<div class="column-topic column">
<?php the_tags('', '') ?>
</div>
</div>
<?php
endwhile;
endif;
wp_reset_postdata();
?>
</div>
</div>
<?php get_footer() ?>
</body>
</html>