create any filter-category create filter-section and add html-item ‘textinput’ set in ‘textinput’ html-item mode title OR content: create search shortcode and select created above filter-category main thing check checkbox ‘Ignore filter-category in wp_query’ another way shortcode will found nothing do next steps as described here: &
The plugin uses standard WP_Query php class of WordPress for creating filter requests. So sometimes filter works slowly on some hostings. I can advise some things in this case: use cache plugins, for example this one switch off dynamic recount in the filter use Autoptimize add more memory to your wp site use PHP 7.2 (or higher) -… read more
To hide filter title OR any html-item title from front you can use tilda sign -> ‘~’:
Sometimes we are need to hide for any reason posts from searching. For example if it is not actual or any another reason. For it you can add in post this meta key – mdf_hide_post – value of which doesn matter, only existing of it matter. If it is exists in posts – it will be… read more
Install this plugin: https://wordpress.org/plugins/widget-logic/other_notes/ Create widget specially for filtering on product category page and set this options on this widget: In your main MDTF widget set ‘Widget Logic’ condition as: !isset($_REQUEST[‘MDF_IS_WOO_CAT’]) In your special MDTF widget for categories set condition: isset($_REQUEST[‘MDF_IS_WOO_CAT’]) Open in your current WordPress theme archive-product.php file drop next code as on screen:
| if (is_product_taxonomy()) { $_REQUEST['MDF_IS_WOO_CAT'] = TRUE; global $wp_query; $cat = $wp_query->get_queried_object(); $additional_tax_query_array = array(); $additional_tax_query_array[] = array( 'taxonomy' => $cat->taxonomy, 'field' => 'term_id', 'terms' => array($cat->term_id) ); $_REQUEST['MDF_ADDITIONAL_TAXONOMIES'] = $additional_tax_query_array; } |
In the… read more
Create sort panel here: Panel type – In the sort panel you can select how to show it on the front of the site: drop-down OR buttons. Show results taxonomies navigation – if to check this checkbox – on the search results page will be displayed all selected taxonomies for current search query Sort panel… read more
Question: I have woocommerce with brands plugin installed, each brand page shows the products of this brand, can this plugin filter those products based on category? Yes. Go to the widget (or the shortcode) and in the bottom of this find textarea with the title ‘Additional taxonomies conditions:’ – and drop next text there in… read more
Use next shortcode:
| [mdf_value key='medafi_textinput' post_id=5 reflection=0] |
key – meta key post_id – ID of the post where its value should be taken. You have to set it if you are going to use this shortcode out of single post page. If inside of single page, you can skip it. reflection – set 1 if you are sure that… read more
For all customers who has the trouble: No results for your search – from v.1.1.1 added new shortcode:
| <?php do_shortcode('[mdf_force_searching]') ?> |
To resolve this it is just enough to open your site current wp theme header.php file in WordPress editor and drop there next shortcode on the same bottom of the file: