Forums Forums Search & Filter Pro Categorising categories and updating search results look

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

    Hi there,

    I have 3 questions/issues that I’m hoping you can help with.

    FIRST
    I have a few different ‘types’ of categories, and such would like to group them in the search filter. Say it looks like this:

    CONTENT
    – Content type 1
    – Content type 2
    – Content type 3

    STAGE
    – Stage 1
    – Stage 2
    – Stage 3

    TOPICS
    – Topic 1
    – Topic 2
    – Topic 3

    I knew before buying that I probably couldn’t use more than one category in one search filter form. But I mistakingly thought that since I could use multiple forms on one page, I could just set them up as different forms. I’ve since realised that that was a dumb assumption. The forms don’t talk to each other and combine results.

    I’ve changed one set of categories to tags i.e. deleted the categories to instead have them as tags (since I don’t really use tags). This works for displaying 2 of my lists, but I have 3 lists…

    Is there a way I can achieve what I need some other way?

    SECOND
    I’m only using my search filter form to search posts (which are actually set up for trainings, not blog articles). I’ve included the search box and I’ve noticed it seems to search the post title, and the post description, but not the tags. If I could fix issue one above without using the tags as a make-shift category, I would start using tags so my posts can be searched by tags. Is it possible for the search function to search through tags while it’s searching for my posts?

    THIRD

    I don’t know if this matters but I’m using the shortcode to display the search results and I’m using the Divi theme. The search filter is in a column and the results is in the second column. I want the results to show only the image, and not anything else, and to display as a grid. I’ve been looking through documentation but I’m not clear on exactly what I need to do. Can you please help? I think it has something to do with changing a template or something but I’m not sure how…

    Thanks in advance for your help.

    Anonymous
    #201353

    Just an update for issue 3, I muddled my way through copying that results.php template. I’ve managed to make most of the changes I wanted to achieve. The results now only show the image (yay!) but you can’t click them haha.

    Are you able to tell me how I would make the thumbnails clickable through to their respective posts? I tried and I broke it…

    Also, would you know how to make it into 3 columns (that reduce to two, then one, when the window gets smaller) instead of one giant image after another vertically?

    My PHP code is below.

    <?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() )
    {
    	?>
    	
    	
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<div>
    			<?php 
    				if ( has_post_thumbnail() ) {
    					echo '<p>';
    					the_post_thumbnail("small");
    					echo '</p>';
    				}
    			?>
    			
    		</div>
    		
    		<?php
    	}
    	?>
    	<?php
    }
    else
    {
    	echo "No Results Found";
    }
    ?>
    Trevor
    #201368

    I think to solve the three fields issue first. Not all of this post will apply to you I think, but worth a read:

    https://support.searchandfilter.com/forums/topic/field-relationships-3/#post-201360

    Anonymous
    #201657

    Oh my god, thank you so much Trevor!
    I installed Custom Post Type UI and am now using a combination of custom post types, taxonomies and categories. This is exactly what I needed!

    Onto issue 2 and 3 – I don’t have any tags at the moment, I tested adding one tag to one training and then I did a search for that tag and nothing came up. Is there a setting I’m missing to have the search field also search through tags when it’s looking for the content?
    I know issue 3 must fall outside of the scope of your support, but any info you could give me would be greatly appreciated otherwise I’ll keep googling ๐Ÿ™‚

    Thanks again

    Trevor
    #201659

    If you want to use the Search text box to search inside taxonomies and custom fields, read this post:

    https://support.searchandfilter.com/forums/topic/search-full-words/#post-201091

    As to Divi, we do have an integration addon (but it is a beta copy right now, so doesn’t always work), see this post:

    https://support.searchandfilter.com/forums/topic/how-to-get-the-results-into-two-columns-layout-with-divi/#post-195025

    … and also an integration method (that does not use the addon), see this post:

    https://support.searchandfilter.com/forums/topic/divi-and-sf/#post-127431

    Anonymous
    #202327

    Thanks for your reply ๐Ÿ™‚
    Sorry I’ve been at this for hours and I still can’t get this to work. I installed the divi add-on and followed the instructions. It wasn’t displaying any results so I added a test post (that was an actual wp post, not a post in the taxonomies I created). It now shows that one post – so it won’t display any of the other taxonomies that you helped me to set up. Will this method only work if I’m using posts taxonomy? Because the divi blog module usually only displays posts, but I’m no longer user any posts – they’re all under taxonomies like courses, workshops etc…tried the portfolio module and that also only shows that one test post too. And just as a side note, when I click to filter by category for that post, it doesn’t matter which category I click, the test post remains even though I only added it to one category.

    The only thing that seems to be working for me is the shortcode display. But customising the results.php page is beyond me ๐Ÿ™

    Trevor
    #202341
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)