Forums › Forums › Search & Filter Pro › Display Results As Thumbnails
Tagged: result thumbnail
- This topic has 37 replies, 4 voices, and was last updated 8 years, 8 months ago by Anonymous.
-
Anonymous(Private) January 6, 2016 at 3:42 pm #33486
Hi,
I just bought the plugin 2.0.3 some days ago. Can I display the results as thumbnails with caption? Would be great.
Just to show what I mean: http://www.couperosecreme.com/couperose-creme-in-sekunden/.
Thanks for helping.
Anonymous(Private) January 7, 2016 at 6:31 pm #33600if ( !empty($show_count) )
{
$link .= ‘ <span class=”‘.SF_CLASS_PRE.’count”>(‘ . number_format_i18n($term_count) . ‘)</span>’;
}$link .= “</label>”;
$link .= “Image holder”;On this file. class-search-filter-taxonomy-walker Image holder, or it can be up or down, at the moment i look to get any Taxonomy images plugin to work with this to get category image by id: $cat_id = esc_attr( $category->term_id ); that is up on this file.
Anonymous(Private) January 7, 2016 at 6:40 pm #33602This is a improvment finding not tutorial or not to put on mounth and eat. We need to find solution, not waiting for support 🙂 I find a place to make show a extra things for label and count place for filter. At the moment need find taxonomy plugin and hooh it into this plugin and we can get a filter with icons, images.
Anonymous(Private) January 7, 2016 at 6:42 pm #33603But i think you need only a image for results, so sorry, i need a image for filters.
If you need a image for results, simply open a: templates/results.php and add a <?php the_post_thumbnail(‘full’); ?> for images, you can use thumbnails, medium as you want or a any custom size for your theme.
Ross Moderator(Private) January 7, 2016 at 7:19 pm #33610Hi both!
Just released an update today.
There is no way to custom images etc like that via the admin UI, however, with the new S&F 2.1 (released today) there are some options for developers in controlling the html output.
http://www.designsandcode.com/33533/search-filter-2-1-released/
Take a look at the last part about the new filter.
You will find there is an example for a html prefix/postfix where I htink you could insert your custom code there.
https://gist.github.com/rmorse/7b59b45a14b1ca179868
Thanks
Thanks
Anonymous(Private) January 7, 2016 at 7:39 pm #33613Ross: I make this, filter with icons, for example, each tag has a image or icon.
On file: class-search-filter-taxonomy-walker.php find this, around 240 line. And then it can be done with custom taxonomy meta keys to get images done.
$link = “”;
$input_id = SF_INPUT_ID_PRE.sanitize_html_class($sf_name.”_”.$cat_slug);
$metaValue = get_terms_meta($cat_id, ‘cat_image’, true);//intval($hide_empty)
$link .= “<input type='”.$this->type.”‘ name='”.$sf_name.”[]’ value='”.$cat_slug.”‘ class='”.$input_class.”‘”.$checked.$disabled.” id='”.$input_id.”‘ /><label for='”.$input_id.”‘><span>”.$cat_name.”</span>” ;
So, i use this plugin, made a cat_image custom field with image and make a output.
http://postimg.org/image/sdwljdyd3/ here is a result.
-
AuthorPosts