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:

   

How to manipulate with terms ordering in search forms

Open functions.php of the current wp theme On the same bottom of the file drop next code:

It is possible order terms by: id,name,slug,count,term_group  

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 make searchable Enfold magazine entries

open enfold functions.php file drop on the same bottom of the file next code:

Save the file  

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