Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Visual Results?

Viewing 10 posts - 11 through 20 (of 27 total)
  • Sarah Trenalone
    #117991

    It looks great, thank you!!! But when I actually select a category I’m getting a 404 error. (This happened before, it only went away when it was set to use post archives)

    Trevor Moderator
    #118018

    Now try it. There was a typo in the form setup for the results page URL.

    Sarah Trenalone
    #118036
    This reply has been marked as private.
    Trevor Moderator
    #118042
    This reply has been marked as private.
    Sarah Trenalone
    #118048

    That’s fine.. Are those changes not easy to do or not possible? I might just put this indexing project on the back burner for now if so

    Trevor Moderator
    #118050
    This reply has been marked as private.
    Sarah Trenalone
    #118052
    This reply has been marked as private.
    Trevor Moderator
    #118129

    Good morning Sarah

    The test page is set to have the left (Primary) sidebar plus main content layout now. The test site has 2 new plugins:

    # Simple Custom CSS (see in Appearance -> Custom CSS), which allows you to add CSS to the theme. The CSS I have added makes it more as you asked for (I think).

    # Widget Logic (you added this yesterday), which allows you to decide which widgets appear on which pages (and so much more), see any widget in the Primary Sidebar, open the widget settings and see at the bottom where I have excluded them from, or included the search form on, the search page we set up.

    Does that look better?

    Trevor Moderator
    #118140

    BTW, this is the grid making results.php I used for your genesis theme:

    <?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() )
    {
    	?>
    	
    	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
    	$odd_check = 1;
    	$first_check = 1;
    	
    	while ($query->have_posts())
    	{
    		$query->the_post();
    
    		if ( $odd_check == 1 ) {
    			$odd_class = " odd";
    		} else {
    			$odd_class = "";
    		}
    		if ( $first_check == 1 ) {
    			$first_class = " first";
    		} else {
    			$first_class = "";
    		}
    		?>
    		<article class="simple-grid one-third<?php echo $odd_class;?><?php echo $first_class;?> post-<?php echo get_the_ID();?> post type-post status-publish format-standard entry">
       <a href="<?php the_permalink(); ?>" class="alignnone">
       <?php the_post_thumbnail("small");?>
    			</a>
    			<header class="entry-header">
        <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
       </header>
    		</article>
    
    		<?php
     	$odd_check++;
    		if ( $odd_check == 3 ) $odd_check = 1;
    	 $first_check++;
    		if ( $first_check == 4 ) $first_check = 1;
    
    	}
    	?>
    	<div style="clear: both;">
    		Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?>
    	</div>
    	
    	<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";
    }
    ?>
    Sarah Trenalone
    #118150
    This reply has been marked as private.
Viewing 10 posts - 11 through 20 (of 27 total)

The topic ‘Visual Results?’ is closed to new replies.