Support » Plugin: WordPress Meta Data and Taxonomies Filter (MDTF) » Search panel and & is_page_mdf_data()

  • Resolved Jeffinho2016


    Hi MDTF guys,
    Back again with a couple of other questions, whenever you have 5 mins (no rush at all)

    1) I’ve lately been using a fair bit
    if(class_exists(‘MetaDataFilter’) && MetaDataFilter::is_page_mdf_data())
    to trigger different text on page if we’re filtering products.

    So if I click in the filters on let’s say something like “High resolution”, I successfully enter the condition.

    However, if I unclick it, I’m still in the condition as it seems that only a proper “Reset” can get me out of it.
    Would you have a simple way to get around this issue?

    2) I also lately discovered the shortcode [mdf_search_panel], damn.. you really actually almost thought of everything in this plugin.
    However, how could I add a “Clear all” button to it (aka “reset”?)

    Thanks again and no rush for the reply! These are minor details

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jeffinho2016


    also [mdf_search_panel] seems to be doing an echo instead of a return? Makes it impossible to place it where I want in the theme?


    1) Try to use this $args = $_REQUEST[‘meta_data_filter_args’]; to check search query

    2) you need plugin customization(JS code)
    If you use ajax mode. Example:
    window.location=location.protocol + ‘//’ + + location.pathname;

    For redirect mode you need get form id
    mdf_ajax_data_recount(form_id, slug, true);

    Try in file add this code –
    OR just paste this html:

    <div class="mdf_searh_panel"><ul class="container_serch_panel "></ul></div>

    Thread Starter Jeffinho2016


    Fantastic! All sorted! Thanks!



Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search panel and & is_page_mdf_data()’ is closed to new replies.