Content of the page

Lets start

Content of the article

After installation of the plugin you should set its settings. See next screens please:

Let's look on the MDTF settings closer:

Main settings:

  1. Search Result Page - base link where search results shown. It can be overwritten in each MDTF widget or shortcode [mdf_search_form]. For woocommerce site set there link to the shop page. For usual WordPress site set link to the site if this field is empty.
  2. Output search template - search template which uses for outputting of the search results. By default for it uses "search" word (means search.php but extension should not written) template - uses default output for current WordPress theme. You can create your own output template. It is easy: create in your wp theme folder file search_output.php (name as an example) and in the plugin setting page instead of "search" write "search_output" .
  3. Supported post types - check here post types you want to use for filtering on your site.
  4. Reset custom link - link to page to which user going after pressing "Reset button" in the MDTF search form. This option can be overwritten in each MDTF widget or shortcode [mdf_search_form]. This field also can be empty.
  5. Results per page - you can set how many results will be displayed on the result page. If set 0 - default WordPress per page option will be taken.

 


 

Front interface:

  1. Tooltip theme - each option from in-built meta data constructor has description, so if you will write text there - tips icon will appear on the front near that html-item in the search form. So you can select style of it. 
  2. Tooltip icon image URL - icon image for tool tip from the previous description.
  3. Tooltip max width - max tooltip width in pixels on the site front.
  4. Tab slideout icon image settings - there is exists one mode in the shortcode [mdf_search_form] shortcode which names as slideouthttp://cars.wp-filter.com/ - so here you can set another image for its button, but it is very important to set width and height for this image too! 
  5. jQuery-ui calendar date format - MDTF supports filtering data by calendar (calendar should be created in the meta data constructor), so here you can set date format for it.
  6. Use chosen js library for drop-downs in the search forms - you can use JavaScript library "chosen" which makes usual drop-downs more attractive. But one thing - not in all WordPress themes it works well. So decide self if you need this or not.
  7. Use custom scroll js bar - another JavaScript library to make interface more attractive. You can set max height for the filter block, which for example has 50 checkboxes. In this case scroll will appers. To make it more attractive you can use this option. 
  8. Use icheck js library for checkboxes - another marvelous JavaScript library to make user interface more attractive. By checking this options you will get on the site front (MDTF forms) beauty checkboxes. By the way you can select a lot of skins for it 
  9. Range slider skin - some skins for range-slider which created by js library IonRange Slider  

 


 

 Miscellaneous:

  1. Overlay skin - here you can select any loading overlay instead of 'Loading text '. + You can set here 'Overlay image background' if you activated any overlay skin except of default one.
  2. Loading text - text while ajax do something 
  3. Default order by - default order and order-by for search results. Order by: date, title and any meta-key, for example _price.
  4. Default sort panel - this option is for the shortcode [mdf_sort_panel], and uses by default.
  5. Toggle open sign/Toggle close sign - the plugins functionality allows close/open filter blocks, so in this option you can set any sign or text 
  6. Hide [mdf_search_button] on mobile devices - search form of the plugin can be presented on the site front  as button by shortcode [mdf_search_button], after clicking on it popup with MDTF search form appears. On some mobile devices it looks bad, so by checking this option you can hide this shortcodes on front for mobile customers. 
  7. Ignore sticky posts - Ignore sticky posts in the search results.
  8. Show terms childs - this option uses for taxonomies when their terms displayed as checkboxes, use it when you want to show always all parents and child's on the same time in the MDTF search form.

 


 

WooCommerce:

  1. This tab appears only if woocommerce plugin installed on the site
  2. Exclude 'out of stock' products from search - excludes out of stock products from the search results.
  3. Try to make shop page AJAXED - Check it if you want to make ajax searching directly on woocommerce shop page. BUT! It is not possible for 100% because a lot of WordPress themes  uses not in the right way woocommerce hooks woocommerce_before_shop_loop AND woocommerce_after_shop_loop.

 


 

In-Built Pagination:

Here are options for built-in pagination. Using by in-built MDTF shortcodes [mdf_products] and [mdf_custom].

 


 

Advanced options:

  1. Include Google Map JS on the next pages - Some themes has already included google maps js, so maybe you will not need this option to avoid js scripts conflict. But if you need this - you can include it on some pages (using their page-ID) on which you uses MDTF google map! Set "-1" if you want to include it on all pages of your site.
  2. Where to keep search data - Better keep search data in the site session to avoid some extra MySQL queries, but in some of the reasons it sometimes not possible, so set it to the "transients". But transients make additional queries to data base! Set it to sessions when your search is working fine to exclude case when searching doesn't work well because data cannot be kept in the site session for any reasons!
  3. Cache dynamic recount number for each item in filter - Useful thing when you already set your site in production mode and uses dynamic recount in MDTF search forms. It makes recount very fast! Of course after adding new posts which have to be in the search results - you have to reset this cache too! There is 10 cron-presets for dynamic recount cache:
    • do not clean cache automatically - if you do post adding rarely
    • clean cache automatically hourly
    • clean cache automatically twicedaily
    • clean cache automatically daily
    • clean cache automatically each 2 days
    • clean cache automatically each 3 days
    • clean cache automatically each 4 days
    • clean cache automatically each 5 days
    • clean cache automatically each 6 days
    • clean cache automatically each 7 days
  4. Cache terms - Useful thing when you already set your site IN THE PRODUCTION MODE - its makes getting terms in the search request for filter more faster without big MySQL queries! If you actively adds new terms every day or week you can set cron period for cleaning this cache.
  5. Init plugin on the next site pages only - This option excludes initialization of the plugin on all pages of the site except links in the textarea. One row - one link! Example: http://mysite.com/ajaxed-search-7/ - slash in the end of the link should be!
  6. Custom CSS code - If you need to customize something and you don't want to lose your changes after next update of the plugin
  7. JavaScript code after AJAX is done - Use it when you need additional js action after AJAX redrawing of your products on the shop page or on any page with shortcode [mdf_custom].

 

Some hints:

  • When searching is going in the redirect mode - tag <body> of the result page has CSS class mdf_search_is_going - so you can use it by your own logic for any CSS manipulations