Forums › Forums › Search & Filter Pro › Having trouble with filters and pages for custom taxonomies
Tagged: custom taxomies, display results, loop
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by Trevor.
-
Anonymous(Private) November 1, 2020 at 6:08 am #264834
We’ve recently upgraded to the latest version of Search and Filter pro.
The old version was setup by someone else. We are using a custom template to display search results, with custom taxonomies for the product pages.
The filtering no longer works, and we are struggling to get multiple pages for results as the we can’t seem to figure our the “loop” for display our results with the information attached.
Archive page below:
<?php get_header(); ?>
<div class=”page-header available”>
<div class=”container”>
<?php echo do_shortcode(‘[searchandfilter id=”79″]’); ?>
</div></div>
<div class=”full-width-content”>
<div class=”container”>
<div class=”sculpture-intro”><h1 style=”font-size:x-Large;”>Sculpture Collection
</h1><br></div>
<div class=”row”><div class=”col-md-12″>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class=” sculpture_post”>
<div class=”archive-thumb”>“> <?php the_post_thumbnail( ‘archive-thumb’ ); ?>
</div><h1 class=”archive”>“><?php the_title(); ?></h1>
<p><?php the_category( ‘, ‘ ); ?></p>
<div class=”artistt-archive”>
<?php$term = get_field(‘artist’);
if( $term ): ?>
<p>by <?php echo $term->name; ?></p>
<?php endif; ?>
</div><p><?php the_field(‘price’); ?></p>
<?php
$term = get_field(‘size’);
if( $term ): ?>
<p>size: <?php echo $term->name; ?></p>
<?php endif; ?>
</article>
<?php endwhile; else: ?>
<br>
<div class=”no-result”>
<h1>sorry! no sculptures match your criteria</h1>
<br>
Reset Search
</div><?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
-
AuthorPosts