Designs & Code

Design, Development and WordPress

Will my lightbox or other fancy JavaScript work with this plugin?

Yes it should, but you may need to make some modifications to your theme:

If you do not wish to use Ajax for loading your search results then you should be fine – you might need to make some small modification to your theme however a search result page is much like an archive page – so if you can get it working there it shouldn’t be a problem.

If however you wish to use Ajax, then the answer is still yes, BUT, you must be comfortable to make modifications to your theme yourself.

When you load in search results via Ajax, results are dynamically added to the page, which means that your lightbox or other script you want to use on your results are not loaded on these dynamic results.  You must modify your theme so that your lightbox or JavaScript is re initialised when Ajax loading is finished.  Luckily Search & Filter provides a handy event to hook into:

We cannot provide support for your various JS plugins etc however we will try to point you in the right direction – you must know a little what you are doing!

 

My plugin won’t update to the latest version, how do I update it?

First you must activate your plugin using your license key (from within the Search & Filter menu in you WP dashboard), once you enter it and click submit, you will need to also click the activation button that becomes available.

If you are running on a local development server please make sure you have CURL enabled as this is how your WordPress website communicates with our servers for activating licenses and receiving automatic updates.

Updates may take a take a few moments to show up and will appear in your plugins page as a regular plugin update.

 

How do I remove CSS/JS files when I don’t need them?

Luckily WordPress provides a few useful functions for remove CSS/Scripts – add these to your themes functions.php to remove everything.

Note: removing some scripts on pages where there are Search Forms will cause them to break – only remove what you need to and use at your own risk!

add_action('wp_enqueue_scripts', 'remove_sf_scripts', 100);
function remove_sf_scripts(){
	wp_deregister_script( 'jquery-ui-datepicker' );
	wp_deregister_script( 'search-filter-plugin-build' );
	wp_deregister_script( 'search-filter-chosen-script' );
}

add_action('wp_print_styles', 'remove_sf_styles', 100);
function remove_sf_styles(){
    
	wp_dequeue_style( 'search-filter-plugin-styles' );
	wp_dequeue_style( 'search-filter-chosen-styles' );
}

 

My results won’t show, or my search results are not being updated?

First question is, how are you displaying your results?

If, under the “display results” tab in the settings box, you are using “as shortcode”.. then open a support ticket – otherwise read on.

If you are displaying your results “as archive” then 90% of problems can fixed by following the below information:

When using the archive method Search & Filter uses the pre_get_posts action to modify the The Loop with your search parameters (The Loop basically is the query that fetches all your posts).  However, in most cases when the results don’t seem to change then it is likely your theme not using The Loop or the Template Hierarchy – typical WP standards which this plugin was designed around.

What can I do to make my theme use The Loop?

Normally the fix is quite easy but can vary from theme to theme – typically themes that don’t use The Loop run their own custom queries inside the template files, which means these queries override the search results generated.  In most cases all we need to do is remove these custom queries from the template that will be used for displaying your search results.

First, as with all debugging with S&F, disable Ajax – its easier to locate and identify any potential issues with Ajax disabled.

Now I’ll demonstrate how to overcome this with a theme that does not use the main loop – Avada (it has its own templating system) here are some simple steps to follow:

1) Take a template from your theme that you wish to use for displaying results – for Avada I would take `search.php` (its up to you which template from your theme to use), and then duplicate your template to `search-filter.php`.

2) In S&F, under “display results” you will need to tick `use custom template` and then set the filename to `search-filter.php`.

Now we have S&F displaying your results using a copy of your template – this will still not work as we need to make some modifications – but at least we are telling S&F which template to use.

3) Remove any custom queries in the new template (`search-filter.php`) – its the queries within the template files that are usually the cause of the problem – all you will hopefully need to do is comment out or remove the lines with the queries on.  Take a look for any instances of `WP_Query`, `get_posts` or `query_posts` and remove these.  In Avada (at the time of writing) this would be line 71, remove the whole line:

`query_posts($query_string.’&posts_per_page=’.$smof_data[‘search_results_per_page’].’&paged=’.$page_num);`

And that’s it – the basics covered and will work for 90% of themes out there!

*NOTE, this was for an old version of Avada, but the logic applies to problematic templates – for Avada specific instructions (based on the latest version) please see below.

But I’m still having problems getting my theme to work…

Some themes need to know that the results are in fact search results – head to the “advanced” tab and tick `force is_search to be true`.

Any other options?

Well, there can be more issues with your particular theme as well as other plugins interfering with search results – in this case it is recommended not to display your results “as archive” but to use “as shortcode” – this setting can be changed under the “display results” tab.

A quick note for Avada Users

If you are using the archive method, and wish to use `search.php` to display results, you need to make 1 modification to the template.

Replace:

<?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>

With

<?php if ( have_posts() ) : ?>

What is a license, and how long does it last for?

Licenses are valid for one year from the date of purchase. A valid and active license key is required in order to get automatic upgrades and support for purchased extensions only.

You may continue to use your plugins/extensions without an active license.

A Developer license allows you to use S&F with updates & support on an unlimted number of sites.

A Single Site license is restricted to one site only.

What about software updates?

Updates are included for free for one year. If you have a valid and active license key, and your plugin(s) supports it, updates will be delivered automatically from the WordPress dashboard. If your plugin(s) does not support automatic upgrades, then updates can be downloaded from your account page.

How long am I entitled to Support for my purchase?

Support for purchased plugins is given up to one year after the purchase date (unless shown otherwise). If you wish to get support after one year, you must renew your license key, or purchase a new license for the plugin you wish to get support for.

What is your Refund Policy?

If you have problems getting plugins to work, we will be happy to provide a full refund within 30 days of the original purchase. After 30 days, no refunds will be given. Before a refund will be granted, you must allow us to try and help solve any problem you have by opening a support ticket. NOTE: refunds will not be granted if you simply decide not to use the purchased products. We stand behind our products and will assist you in solving any problem you have, but we also expect you to adequately understand what you are purchasing and why.

145 Responses to “Frequently Asked Questions”

  1. Bard

    Is it only work on the combination way, not cross way? For example, in your movie demo, if I select Action(5) and Adventure(11), it lists all the movies that are “Action OR Adventure”. What I like to list is both “Action AND Adventure”, can it work this way?

    Reply
  2. Nikki Dickson

    Hi there

    I’ve just bought the developer version, but it seems as if my custom posts are not being picked up. I’ve refreshed the cache, but keep getting an error about the cache tables being missing. When I click to sort out the problem, I just get a blank page:
    [link removed]
    Thanks

    Reply
  3. Hi if I buy a single site licence to make sure its all working for me the way I need and then decide I need a developer licence can you upgrade me?

    Reply
    • Ross

      Yeh, we have upgrade paths in your account area so you can do this yourself 🙂

      Reply
  4. Andy Sardy

    Hi,
    I’m interested in purchasing this plugin, but I’m not sure which license is right for my needs. Our site runs in three different addresses: one production site (i.e. mysite.com), one pre-production site (same domain but different port, i.e. mysite.com:8080), one test site on another domain (i.e. mysite.myispdomain.com) available only to developers. And I have a local developement installation on an intranet server. Do I have to purchase single site license or developer license (the site is the same, runs on different URLs)? Kind regards

    Reply
    • Ross

      Hi Andy

      It depends. Do you need to be able to update the plugin at all 3 domains? in this case probably you need developer.

      If you only intend to update S&f plugin on staging for example, then you could purchase single site license, register it to staging, and then you should be good to go. We will generally only provide support at your registered URL though.

      Hope that helps.

      Best

      Reply
  5. Javier

    Hi,

    I have posts woth custom fields mapped from contact form 7 forms by using the “post my cf7 form” plugin.

    My metadata includes a date field (dont know if it is just a text field with a certain date format). Can this plugin filter the data in this field usin a datepicker?

    Kind regards,

    Javier

    Reply
    • Ross

      It should be able to, provided the date is stored as “YYYYMMDD” or as unix timestamp, ie – “1495656681” and the data is definitely on a post meta key then it should work – I’m not sure how CF7 stored the dates though, that would be worth investigating first.

      Best

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *