use new template tag to render faceted search

This commit is contained in:
Leo Germani 2018-05-29 13:53:37 -03:00
parent dfe5259ff6
commit 2965f5f77c
2 changed files with 4 additions and 9 deletions

View File

@ -3,7 +3,7 @@
<div class="row">
<div class="col mx-sm-auto p-0">
<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>
</div><!-- /.row -->

View File

@ -1,9 +1,6 @@
<?php var_dump($request['fetch_only']); if (have_posts()): ?>
<?php if (have_posts()): ?>
<div class="list-container">
<?php while (have_posts()): the_post(); ?>
@ -18,11 +15,11 @@
</div>
<div class="list-metadata">
<?php foreach ($request['fetch_only']['meta'] as $meta_id): ?>
<?php foreach ($displayed_metadata as $meta_id): ?>
<span>
<p>
<?php tainacan_the_metadata((int) $meta_id); ?>
<?php tainacan_the_metadata($meta_id); ?>
</p>
</span>
@ -34,8 +31,6 @@
</div>
<?php endwhile; ?>
</div>