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
| <?php if ($show_option): ?> <option <?php if ($tax_count == 0 AND ( $widget_options['taxonomies_options_show_count'] == 'true' OR $widget_options['taxonomies_options_show_count'] == 1)): ?>disabled<?php endif; ?> value="<?php echo $term_id ?>" <?php if ($selected_id == $term_id): ?>selected<?php endif; ?>> <?php _e($term['name']) ?><?php echo $tax_count_strting; ?> </option> <?php endif; ?> |
add next code
| <?php if (in_array($term_id, array(57, 63, 89, 99))) { $show_option = false; } ?> |
Where array(57,63,89,99) is term_ids which you want to exclude
You can remove any option(s) from any drop-down using JavaScript. Look on the next code please:
| <script type="text/javascript"> jQuery(function () { jQuery(".mdf_taxonomy_pa_merk .mdf_taxonomy option").each(function () { var v = jQuery(this).val(); if (v == 74 || v == 202) { jQuery(this).remove(); } }); }); </script> |
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
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
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
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
If you need display values of the post/custom which are created by built-in meta data constructor, you can use next function:
| /** Get meta value of post * * @param string $key Meta Key * @param int $post_id Post ID, if its == 0, ID will try to get from globals * @param bool $look_for_reflection Set to true if you now or you think that param is reflected * * @return mixed Depends of what meta field is keeps */ MetaDataFilter::get_field($key, $post_id = 0, $look_for_reflection = false ) |
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
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
Here you can download free templates which uses on the plugins demo sites: ATTENTION: in custom templates must be used css classes: ‘mdtf_posts’ for posts block/list, and ‘mdtf_post’ for each post/item! Closely see templates examples above (button Download). How to create custom template: For example you found html template somewhere and you liked it, for example… read more
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