Content of the page

MDTF hidden utilities

The plugin has hidden area: wp-admin/edit.php?post_type=meta_data_filter&page=mdf_utilities To display it: open index.php of the plugin (near row #33) find:

and uncomment it (remove ‘//’ on the beginning of the string) save the file you will find useful utility there ‘Terms to meta’ which allows convert any taxonomy terms slugs or names into meta data p.s. this… read more

CSS manipulations while search is going

When searching works in the redirect mode (not ajax) in tag <body> appears CSS class ‘mdf_search_is_going ‘. This fact can help you with any manipulations with site layout while MDTF search request is going on current page. For example hide smth:

   

One hint how to avoid incompatibilities

Sometimes when MDTF works (searching going), some plugins have conflicts with it. Lets consider an example – one customer wrote me that his ‘membership plugin’ doesn work normally when MDTF making searching, there was some issues. So I suggested simple and quick decision: open index.php of that membership plugin for example (the same for another… read more

How to set logic ‘AND’ for taxonomies terms of the same taxonomy

This works for shortcode [mdf_custom custom_id=777] with attribute ‘custom_id’ (777 is in the code below) + doesn work with dynamic recount (you can hide count by CSS) Example: http://general.wp-filter.com/category/flowers-posts/ open your current wp theme functions.php file drop there next code:

In the function mdf_dyn_tax_recount_args in array $and_tax_relation write your taxonomy instead ‘post_tag’ OR using comma add more another… read more

How to assign filter-category automatically

Assigning of any filter-category automatically (by code in your site) to any post type is necessary when for example a lot of posts should be added by users for example, or by any another reason.  For this should be used WordPress hook save_post https://codex.wordpress.org/Plugin_API/Action_Reference/save_post Here is an example how to realize it: open functions.php file of… read more

How to convert taxonomies terms values into meta values

Sometimes users need conversion any taxonomy terms names into meta data: integer or float values. Reason: desire using range-slider for that values, but trouble in that – range-sliders works only with meta-data. So next algorithm will help you synchronize data: Create in meta constructor html-item, type: range-slider for example. Let it be filter of bpm (beats per minute) on… read more

How automatically enter the “meta_data_filter_cat” when an user inserts a new article

Meta filter category ID  – keeps in each post with the same name key ‘meta_data_filter_cat’. So if you want to allow your user create new posts with already predefined or selected ‘Meta filter category ID’ you are need in your wp theme functions.php  add next code:

Where $meta_data_filter_cat_id is predefined meta_data_filter_cat ID which of course… read more

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