Forums Forums Search & Filter Pro Field relationships not working correct

Viewing 10 posts - 11 through 20 (of 35 total)
  • Trevor
    #51458

    Ah, NOW I see.

    What display result method are you using?

    Anonymous
    #51459
    This reply has been marked as private.
    Trevor
    #51462

    What theme is this?

    Anonymous
    #51464
    This reply has been marked as private.
    Trevor
    #51482

    It does not seem to be applying the results filter correctly. How long is the code in the search.php template file?

    and … why use a custom made template? So much hassle.

    Anonymous
    #51562

    Hi Trevor,

    This is the code for the search.php file:

    <?php get_header(); ?>
    <article id=”search-results”>
    <div class=”container”>
    <div class=”row”>
    <div class=”col-sm-3″>
    <div class=”search-box”><?php echo do_shortcode(‘[searchandfilter id=”15″]’);?></div>
    </div>
    <div class=”col-sm-9″>
    <?php get_template_part(‘loop’); ?>
    <?php get_template_part(‘pagination’); ?>
    </div>
    </div>
    </div>
    </article>
    <?php get_footer(); ?>

    Why use a custom template, business decisions. ๐Ÿ™‚

    Trevor
    #51567

    mmmm.

    What is in the loop template part? Can you use code tags to enclose the code (the butons are above the editor area)?

    Anonymous
    #51568

    This is the loop. Nothing special:

    <div id="main-filter">
    	<?php if (have_posts()): while (have_posts()) : the_post(); ?>
    		<a href="<?php the_permalink(); ?>">
    		<!-- article -->
    		<article id="post-<?php the_ID(); ?>" class="content-items">
    				<div class="row">
    					<div class="col-sm-3">
    						<div class="thumbnail-content-items">
    							<?php if ( has_post_thumbnail()) : // Check if thumbnail exists ?>
    								<?php the_post_thumbnail(array(120,120)); // Declare pixel size you need inside the array ?>
    							<?php endif; ?>
    						</div>
    					</div>
    					<div class="col-sm-9">
    						<h2>
    							<?php the_title(); ?>
    						</h2>
    							<?php html5wp_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?>
    					</div>
    				</div>
    		</article>
    		<!-- /article -->
    		</a>
    	<?php endwhile; ?>
    
    	<?php else: ?>
    
    		<!-- article -->
    		<article>
    			<h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>
    		</article>
    		<!-- /article -->
    
    	<?php endif; ?>
    </div>

    Sorry I didn’t see the code tags.

    Trevor
    #51569

    It is in ode tags, so you got it right ๐Ÿ™‚

    Where is the wp_query to fetch the content?

    Anonymous
    #51570

    Niceeeee… ๐Ÿ™‚

    There is no wp_query because the plugin only works when it’s inside the normal loop right?

    Options

    At least that’s plugin say’s…

Viewing 10 posts - 11 through 20 (of 35 total)