Forums › Forums › Search & Filter Pro › Categorising categories and updating search results look
- This topic has 6 replies, 2 voices, and was last updated 6 years, 4 months ago by
Trevor.
-
Anonymous(Private) February 6, 2019 at 8:46 am #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(Private) February 6, 2019 at 9:43 am #201368I 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(Private) February 8, 2019 at 8:05 am #201657Oh 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(Private) February 8, 2019 at 8:19 am #201659If 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:
… 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(Private) February 15, 2019 at 9:25 am #202327Thanks 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 ๐
-
AuthorPosts