Forums Forums Search & Filter Pro Having a few issues with the search results

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #189313

    Hello,

    Please can you assist as i am having some issues with the search out put on my website?

    Thanks

    Trevor
    #189319

    Are you able to send me a live link/URL to your search page so I can take a look?

    Can you further describe the issues? If it helps, use one or more annotated screenshots (you must upload these to a file sharing site, like cloudup) and share the links with me.

    Anonymous
    #189323
    This reply has been marked as private.
    Anonymous
    #189325
    This reply has been marked as private.
    Anonymous
    #189358
    This reply has been marked as private.
    Trevor
    #189360
    This reply has been marked as private.
    Trevor
    #189362

    I used WP File Manager (whioch you had already got installed), and I followed these instructions:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    And changed the results.pgp code to this:

    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      https://searchandfilter.com
     * @copyright 2018 Search & Filter
     * 
     * Note: these templates are not full page templates, rather 
     * just an encaspulation of the your results loop which should
     * be inserted in to other pages by using a shortcode - think 
     * of it as a template part
     * 
     * This template is an absolute base example showing you what
     * you can do, for more customisation see the WordPress docs 
     * and using template tags - 
     * 
     * http://codex.wordpress.org/Template_Tags
     *
     */
    
    if ( $query->have_posts() )
    {
    	?>
    	
    	Found <?php echo $query->found_posts; ?> Results<br />
    	Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
    	
    	<div class="pagination">
    		
    		<div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div>
    		<?php
    			/* example code for using the wp_pagenavi plugin */
    			if (function_exists('wp_pagenavi'))
    			{
    				echo "<br />";
    				wp_pagenavi( array( 'query' => $query ) );
    			}
    		?>
    	</div>
    	
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<div>
    			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    			
    			<p><br /><?php the_excerpt(); ?></p>
    			<?php 
    				if ( has_post_thumbnail() ) {
                        ?>
    					<p><a href="<?php the_permalink(); ?>">
                        <?php
    					the_post_thumbnail("small");
                        ?>
    					</a></p>
                        <?php
    				}
    			?>
    			
    		</div>
    		
    		<hr />
    		<?php
    	}
    	?>
    	Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
    	
    	<div class="pagination">
    		
    		<div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div>
    		<?php
    			/* example code for using the wp_pagenavi plugin */
    			if (function_exists('wp_pagenavi'))
    			{
    				echo "<br />";
    				wp_pagenavi( array( 'query' => $query ) );
    			}
    		?>
    	</div>
    	<?php
    }
    else
    {
    	echo "No Results Found";
    }
    ?>
Viewing 7 posts - 1 through 7 (of 7 total)