• Resolved memoryfun3

    (@memoryfun3)


    1.When I apply a default term, All button in filter panel show default term. But when I summit All button, filters will be cleared. Is it possible to keep default term (not be cleared)?

    2.The placeholder “All” for the filter named Dropdown Filter Compact will show all taxonomy terms instead of default term. How can let the placeholder “All” show default term when apply default term ?

    (It will be very helpful if the taxonomy include parent and child terms, and hide the parent term.)

    Thanks for your answer.

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

    (@memoryfun3)

    About quesiton2, I try to add the following code to Custom Actions, but it didn’t work.

    wp.hooks.addAction('ymc_before_loaded_data_58090_1', 'smartfilter', function(class_name) {
    if (class_name === 'data-target-ymc58090-1') {
    const filterContainer = document.querySelector('.data-target-ymc58090-1');
    if (filterContainer) {
    YMCTools({
    target: '.data-target-ymc58090-1',
    terms: '876'
    }).apiTermUpdate();
    }
    }
    });
    Plugin Author YMC

    (@wssoffice21)

    Hi!

    When selecting a default taxnomy term (tag), posts are loaded by the specified term. Accordingly, the selected term is marked in the filter panel. This is the algorithm of the plugin.
    Regarding your second question, that this hook is triggered before loading posts. Please, send a link to the page of your site and we will check it.
    As for the other recommendations, we will consider them in future releases of the plugin. Thanks for your help in improving our plugin.

    • This reply was modified 4 months, 3 weeks ago by YMC.
    Thread Starter memoryfun3

    (@memoryfun3)

    Plugin Author YMC

    (@wssoffice21)

    Thanks for the information. Our specialists will analyze your wishes if possible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.