-
AuthorSearch Results
-
March 17, 2015 at 1:32 pm #13577
In reply to: Update count value based on search query
AnonymousInactiveAnother suggestion (maybe you already thought of it): if certain terms don’t contain any content after filtering, an extra class will be added, so they can be styled as ‘inactive’. So <li class=”sf-item-3285″> would become something like <li class=”sf-item-3285 inactive”>.
Thanks again!
March 11, 2015 at 7:50 pm #13234In reply to: Complex template query
AnonymousInactiveThanks for the reply Ross……I think the problem is that previously (before using the SP plugin or making any attempt to filter the results), I used the get_posts style of query in order to compare one of the meta keys holding a (expiration) date to the current date, and to not display results for those posts where the meta-value date had passed…..then I used a foreach loop and setup_postdata to access all the meta data. That query worked perfectly – returned results unless the date had passed. All was great until I was asked to add some live filtering of the results.
And I did figure out (rather easily) how to use the meta data to setup the same comparison in the “advanced” setting in the SP plugin, so the SP query does weed out those posts whose meta date has passed, so all was good there – I did get the expected posts returned. The only thing was that the “results.php” file that displays the results has a custom query variable ($query->the_post) most likely using wp_query rather than get_posts, and that does not seem to work with setup_postdata – because as near as I can tell, setup_postdata only seems to work with ‘foreach’, not ‘while’ loops….and foreach seems only to work with get_posts.
As mentioned, I’m not a coder, so there’s likely a better way to do what I’m trying to do, but it took me many, many days of research and testing to get my (old) query just right, it just wasn’t further filterable without your plugin.
NOW I do have everything working just great, but using the ACF “get_field” and “the_field” instead of get_post_meta – formatting dates is working great too…..so really I’m a pretty happy camper today…..I just wish I was more skilled with programming, I might have found a cleaner way….
But I really do love this plugin…..it’s very impressive. I’m off to give the free version (which I tested first) a great review on the repository and give a shout-out to the paid version, which is even better. I always do that when I find a worthy plugin. 🙂
March 6, 2015 at 9:34 am #12930In reply to: Results to show just Portfolio Images.
RossKeymasterHi Michael
Follow the instructions here – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax – to copy the template files in to your theme – this means you can start customising your layout.
Once that is done, you can treat it just like any other WP template, or template part – so in terms of what you want to achieve a quick google turned these up:
https://www.nosegraze.com/display-wordpress-posts-2-3-columns/
http://www.wpbeginner.com/wp-themes/how-to-create-a-grid-display-of-post-thumbnails-in-wordpress-themes/Unfortunately customising layouts/style is not included in support.
Thanks
February 26, 2015 at 7:51 pm #12504In reply to: Filtering doesn t work
AnonymousInactiveok i included it manually
so if anyone else has a yootheme with warp7 framework, the way to do this is:
open theme.config.php in your style
and find comment // add scripts
at the bottom just add
$this[‘asset’]->addFile(‘js’, ‘/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.js’);
this will load this js on every page, unfortunately i cannot figure a better way out 🙁
February 26, 2015 at 2:28 pm #12478In reply to: Filtering doesn t work
RossKeymasterHey Nemanja
I understand – but its the only way to isolate an issue – however if you are using a test environment then I would just create a backup of this and restore once testing is complete – that way you’ll have your widgets etc reverted after testing.
I think it is possible to manually load a script – but the best bet is normally to identify the problem, rather than just work around it.
If you did want to go this way then you will need to check examples on how to load scripts in your theme:
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
http://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/And for your reference, I believe the only essential JS file to load from S&F is located:
wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.jsWhich has a jQuery dependency (jQuery must already be loaded)
Thanks
February 18, 2015 at 2:10 pm #12108In reply to: "AND" relationship between the different form field
AnonymousInactiveWell,
I still have all the ads (filter on the meta doesn’t works).
But I do not have any more a drop down menu used to order manually the results.More over I have an additional question :
In the “display results” tab under template options do I have to tick “Use a custom template for results?” to make sure that the php file in “Enter the filename of the custom template:” is used ?When I tick this box with search.php the results are without any style.
If I don’t the results are shown correctly. But The default php page must be search.php so I would have the same design in both case ?Thanks.
February 13, 2015 at 9:19 pm #11923In reply to: "AND" relationship between the different form field
AnonymousInactiveGreat,
So at this time I have renamed the search.php to search-filter.php and change the line <?php get_template_part( ‘loop’, ‘ad_listing’ ); ?> to <?php get_template_part( ‘loop’, ‘ad_listing_sf’ ); ?>.
Then I have duplicated loop-ad_listing.php and renamed it to loop-ad_listing_sf.php.So the filenames that you gave me were corrects.
And as far as I have understand, now I have to modify the following content (I am not sure for the line to be removed) :
<?php
/**
* Main loop for displaying ads
*/
global $cp_options;
?><?php allthemes_before_loop(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php allthemes_before_post(); ?>
<div class=”post-block-out <?php cp_display_style( ‘featured’ ); ?>”>
<div class=”post-block”>
<div class=”post-left”>
<?php if ( $cp_options->ad_images ) cp_ad_loop_thumbnail(); ?>
</div>
<div class=”<?php cp_display_style( array( ‘ad_images’, ‘ad_class’ ) ); ?>”>
<?php allthemes_before_post_title(); ?>
<div class=”clr”></div>
<?php allthemes_after_post_title(); ?>
<div class=”clr”></div>
<?php allthemes_before_post_content(); ?>
<p class=”post-desc”><?php echo cp_get_content_preview( 160 ); ?></p>
<?php allthemes_after_post_content(); ?>
<div class=”clr”></div>
</div>
<div class=”clr”></div>
</div><!– /post-block –>
</div><!– /post-block-out –>
<?php allthemes_after_post(); ?>
<?php endwhile; ?>
<?php allthemes_after_endwhile(); ?>
<?php else: ?>
<?php allthemes_loop_else(); ?>
<?php endif; ?>
<?php allthemes_after_loop(); ?>
<?php wp_reset_query(); ?>
February 5, 2015 at 3:02 pm #11531Topic: Remove jQuery UI Stylesheet
in forum Search & Filter Pro
AnonymousInactiveThis topic was marked as resolved but you waited for no response before marking it as such.
I need a function to remove your default jQuery UI stylesheet ( ‘search-filter.min.css’ ) that is causing me conflict issues. I have my own which I’d like to implement.
The default unregister/dequeue options are not working.
Thank you in advance and please do not mark as resolved until the issue is 🙂
February 4, 2015 at 9:54 am #11445In reply to: Unregister/Dequeue built in jQuery UI stylesheet
AnonymousInactiveHi Ross!
Thank you for getting back to me quickly 🙂
It isn’t the jQuery I was after, it is the jQuery UI stylesheet ( ‘search-filter.min.css’ ) that is causing me the issue, I have my own which I’d like to load so if you could please give me the function to remove yours I’d very much appreciate it.
I do not want to override it, I would like it gone.
Thank you 🙂
January 31, 2015 at 12:17 pm #11220Topic: CCS alignment Range Slider
in forum Search & Filter Pro
AnonymousInactiveHi Ross,
I’m having some trouble with modifying the “Look and feel” from the Range Slider.
I’m still experimenting to build my website on a localhost (with WAMP) so I have to send you some pictures to show you the example I’m struggling with.I’m using a theme called Flatsome and have installed Woocommerce and your Search-filter-pro plugin.
As seen on the first picture the minimum and maximum numeric fields under the h4 header called “Voor welke prijsklasse?” are aligned underneath each other with as separator an underscore in between.

I did some Photo shopping in picture 2 to let you see how I like the alignment to be.

I did some experimenting in the next CSS files:
<link rel=’stylesheet’ id=’search-filter-chosen-styles-css’ href=’http://localhost/ww/wp-content/plugins/search-filter-pro/public/assets/css/chosen.min.css?ver=1.4.0′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’search-filter-plugin-styles-css’ href=’http://localhost/ww/wp-content/plugins/search-filter-pro/public/assets/css/search-filter.min.css?ver=1.4.0′ type=’text/css’ media=’all’ />
But I could not find the Class called “meta-range” these items refer to.Possibly these numeric fields and there CSS is hard baked somewhere in the PHP files but since I’m a novice in PHP, I’m not able to find them.
Can you be so kind to give me some pointers or CSS examples on how I can line up these numeric fields like the example in the second picture?
For the rest your plugin is working great and it does exactly where I’m looking for.
Easy to configure and straight to the point. Good job!Thanks in advance for your cooperation.
Regards,
Jeroen van Eck -
AuthorSearch Results
Search Results for 'filter style'
-
Search Results
-
Topic: Remove jQuery UI Stylesheet
This topic was marked as resolved but you waited for no response before marking it as such.
I need a function to remove your default jQuery UI stylesheet ( ‘search-filter.min.css’ ) that is causing me conflict issues. I have my own which I’d like to implement.
The default unregister/dequeue options are not working.
Thank you in advance and please do not mark as resolved until the issue is 🙂
Topic: CCS alignment Range Slider