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="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 -->

View File

@ -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: ?>