use new template tag to render faceted search
This commit is contained in:
parent
dfe5259ff6
commit
2965f5f77c
|
@ -3,7 +3,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col mx-sm-auto p-0">
|
<div class="col mx-sm-auto p-0">
|
||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
<div id="tainacan-items-page" collection-id="<?php echo tainacan_get_collection_id(); ?>"></div>
|
<?php tainacan_the_faceted_search(); ?>
|
||||||
</div><!-- /#content -->
|
</div><!-- /#content -->
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
|
<?php if (have_posts()): ?>
|
||||||
|
|
||||||
<?php var_dump($request['fetch_only']); if (have_posts()): ?>
|
|
||||||
|
|
||||||
<div class="list-container">
|
<div class="list-container">
|
||||||
|
|
||||||
|
|
||||||
<?php while (have_posts()): the_post(); ?>
|
<?php while (have_posts()): the_post(); ?>
|
||||||
|
|
||||||
<div class="tainacan-list">
|
<div class="tainacan-list">
|
||||||
|
@ -18,11 +15,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list-metadata">
|
<div class="list-metadata">
|
||||||
<?php foreach ($request['fetch_only']['meta'] as $meta_id): ?>
|
<?php foreach ($displayed_metadata as $meta_id): ?>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<p>
|
<p>
|
||||||
<?php tainacan_the_metadata((int) $meta_id); ?>
|
<?php tainacan_the_metadata($meta_id); ?>
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -35,8 +32,6 @@
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|
Loading…
Reference in New Issue