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
For all customers who has the trouble: No results for your search – from v.1.1.1 added new shortcode:
| <?php do_shortcode('[mdf_force_searching]') ?> |
To resolve this it is just enough to open your site current wp theme header.php file in WordPress editor and drop there next shortcode on the same bottom of the file:
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