Forums Forums Search & Filter Pro Results not refreshing

Viewing 3 posts - 11 through 13 (of 13 total)
  • 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 3 posts - 11 through 13 (of 13 total)