If you want to filter products/posts only by taxonomies and price – you can do it fast, after installing of the plugin you can use it. BUT you should make only one thing as you want filter by price too. create new filter-category add filter price under this filter-category and save it reflect it to _price key… read more
Open header.php of the current wp theme and go on the same bottom of the file or in place where you want to place it For example you want show shortcode with ID 177 on two pages, with page-ID 22 and 77 Drop the shortcode in the next code example:
| if(is_page(22) OR is_page(77)){ echo do_shortcode('[mdf_search_form id="177"]'); } |
Sometimes it is happens, the plugin allows you to use any output template, and in this way we will do next steps to let MDTF use woocommerce templates: Go to the plugins/woocommerce/templates and copy files there as on screen: Paste this files into your current wp theme into woocommerce folder (create it if doesn exist): Your site… 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
WooCommerce attributes in the plugin works in the same way as any another taxonomies if you are created them in the right way. create attributes you are need here: go to the MDTF widgets and check there attributes you are want to use: The same in the filter-shortcodes. That is all…
If AJAX auto recount works in widgets, to activate autosubmit you are need: deactivate AJAX recount activate autosubmit
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
Sometimes in woocomerce shop for example you have different types of products, and filter-items for one product type is not fit to another. So you are need to create 2 filter-categories and filter-sections for each of them. Then mark products by one or another filter-category and select its options there on backend. But how to… 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