Content of the page

How to exclude terms from the search form?

There is no such functionality in shortcode, but in the widget:  To resolve your task you are need modify code of the plugin: index.php -> function draw_term_childs_select ->  before

add next code

Where array(57,63,89,99) is term_ids which you want to exclude  

How to remove drop-down option from html by javascipt

You can remove any option(s) from any drop-down using JavaScript. Look on the next code please:

css class ‘.mdf_taxonomy_pa_color’ is container for drop-down with css class ‘mdf_taxonomy’ which makes filtration for taxonomy ‘pa_color’.  In construction ‘if’ set terms ids which you want to remove. You can drop this script in your footer.php More: http://stackoverflow.com/questions/22988581/how-to-remove-all-options-from-a-dropdown-using-jquery-js… read more

How to use Essential Grid plugin of theme punch with MDTF

From version 2.1.9 (1.1.9) customers can use plugin ‘Essential Grid WordPress Plugin’ to create very beautiful layouts for your site and make them filterable by MDTF.    Download MDTF html templates from here Unzip and upload folder mdf_templates into your current wp theme Create Page in your site and drop there shortcodes like this:  [mdf_results_by_ajax shortcode=”mdf_custom… read more

How to hide post from search query

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

How to get meta value of post and show it on front

Use next shortcode:

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

How to print on frontend the meta fields we created

If you need display values of the post/custom which are created by built-in meta data constructor, you can use next function:

If you are using this on the single page you not need set $post_id, if somewhere in loop you need set this value. If you are sure that you are using reflection, set $look_for_reflection… read more

How to get search arguments only on my page OR hack my portfolio shortcode

Sometimes there is necessary to hack/hook native theme OR any plugin code to make it works (filterable) with MDTF, as that shortcode uses its own WP_Query request. To make any shortcode works with MDTF do next steps: create page and drop your portfolio shortcode (for example) there in MDTF widget/shortcode options set “Results output page link” link to that new page… read more

How to create custom output template

Here you can download free templates which uses on the plugins demo sites:    How to create custom template: For example you found html template somewhere and you liked it, for example here http://codepen.io/Boshnik/pen/qatDG. Just download it and do next steps. Create in your current wp theme folder new folder with name ‘mdf_templates’ In that folder – create… read more

How to create custom skin for search shortcode

You need know css to realize it! Firstly go here:  Then copy “default” skin folder and paste it on the same skin directory. Rename it to any custom name you want (without spaces, lowercase) Open your custom skin file styles.css and rename everywhere css class from mdf_shortcode_skin_default to mdf_shortcode_skin_custom  Then go to filter shortcodes, create there new… read more