Forums Forums Search & Filter Pro Results not refreshing

Viewing 4 posts - 11 through 14 (of 14 total)
  • Trevor
    #45920

    So, that was a good Skype session, Frank.

    When you have finished what I have started for you customizing the results.php file, maybe you can post it here for others to see?

    If you feel that this support has been worthy of note, maybe you could leave a review:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/reviews/

    Anonymous
    #45942

    Hi Trevor,

    thanks to your excellent guidance and explanations.

    The results.php is working now as intended.
    check out: https://www.kleinkunst.theater/

    Pls note that I have translated some words into german.
    (not yet internationalised code, but will add that as well)

    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      http://www.designsandcode.com/
     * @copyright 2015 Designs & Code
     * 
     * 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() )
    {
    	?>
    	
    	<?php echo $query->found_posts; ?> Beitr&auml;ge gefunden<br />
    	Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?><br />
    	
    	<div class="pagination">
    		
    		<div class="nav-previous"><?php next_posts_link( '&Auml;ltere Beitr&auml;ge', $query->max_num_pages ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( 'Neuere Beitr&auml;ge' ); ?></div>
    		<?php
    			/* example code for using the wp_pagenavi plugin */
    			if (function_exists('wp_pagenavi'))
    			{
    				echo "<br />";
    				wp_pagenavi( array( 'query' => $query ) );
    			}
    		?>
    	</div>
    	<div class="row row-masonry">
    	
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    	<article <?php post_class('post-masonry col-sm-' . $grid_col); ?>>
    	    <div class="post-inner">
    	        <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
    	            <?php echo at_post_thumbnail($post->ID, 'at_thumbnail', $args); ?>
    	        </a>
    	
    	        <h2>
    	            <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
    	                <?php the_title(); ?>
    	            </a>
    	        </h2>
    	
    	        <p><?php echo the_excerpt(); ?></p>
    	
    	        <div class="clearfix"></div>
    	    </div>
    	</article>
    		
    		<?php
    	}
    	?>
    	</div>
    	Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?><br />
    	
    	<div class="pagination">
    		
    		<div class="nav-previous"><?php next_posts_link( '&Auml;ltere Beitr&auml;ge', $query->max_num_pages ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( 'Neuere Beitr&auml;ge' ); ?></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";
    }
    ?>
    
    Trevor
    #45948

    I can close the thread and mark it resolved?

    Anonymous
    #46200

    Yes, absolutely.

Viewing 4 posts - 11 through 14 (of 14 total)