Forums Forums Search & Filter Pro Little improvements

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Trevor
    #188317

    Are you using our shortcode display results method?

    Anonymous
    #188372
    This reply has been marked as private.
    Trevor
    #188385

    The shortcode display results method uses our exemplar template – results.php. The basic steps for customising the file are set here, but you would need to do the coding:

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

    In the main you would be deleting parts. Are you currently using an unmodified version of that file?

    Anonymous
    #188495
    This reply has been marked as private.
    Trevor
    #188561

    You can replace the contents of the results.php with 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; ?> Companies<br />
    	
    	<?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() ) {
    					echo '<p>';
    					the_post_thumbnail("small");
    					echo '</p>';
    				}
    			?>
    			
    		</div>
    		
    		<hr />
    		<?php
    	}
    }
    else
    {
    	echo "No Results Found";
    }
    ?>

    I am not sure what you mean by:

    The infinite scroll should be bigger (double size) How can I increase it?

    and also

    The displayed results (the names of the companies) should not link to the Post-site. They should link to my individual site.

    Trevor
    #188563

    I just edited that a bit, please copy the code from our forum, and not from the email.

Viewing 6 posts - 1 through 6 (of 6 total)