PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

use the logical AND condition between multiple metadata elements

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

 

Hello,
in this page I use the MDF widget and ajax short code

Spoiler
https://scuole.museiincomuneroma.it/offerta-didattica-per-le-scuole-a-s-2020-2021/

[mdf_results_by_ajax shortcode="mdf_custom template=any/mytemplate post_type=schedadidattica orderby=rand order=desc page=0 per_page=6 pagination=tb meta_data_filter_cat=28" animate=0 animate_target=body]

when I select the first cechbox and the second of the first filter, (Scuola dell’infanzia (14) e Scuola primaria (69))
I would like to see all posts that have at least one of the associated metadata. in total 14+69
Currently instead I only see posts that have both metadata selected, how can I change this condition?

best regards

Hello

Please paste your license key here - https://share.stackovergo.com/image/i20210618130558.png -> https://share.stackovergo.com/image/i20210618130614.png

Unfortunately, between different meta fields, the comparison logic will be AND

To change this behavior, you need more than a simple customization of the code.

Hello,

I entered the requested information, if you can give me the directions to change the code I would be grateful.

Thank you
Hello

Hello

In  file  - \wp-content\plugins\meta-data-filter\classes\html.php - you can  change  meta query - https://c2n.me/4dHnUdz.png

hi Pablo,

thanks for the information, I tried to vary the = parameter of the compare value, using like, in, but I can't get what I want.
Do you have any suggestions for how to modify the query?
thank you very much for the support.

Hello

You should change the"relation" parameter in the meta_query - eveloper.wordpress.org/reference/classes/wp_query/