i am usig and love the plugin, but wanted to ask if it is possible to change the defauld relation type between taxonomy fields, it says default relation is or, but can’t be changed.
the problem is than when i set the relation of search terms to OR it shows a lot results, if i set to AND it shows nothing when both terms are on the same taxonomy.
example. category: laptop, desktop
tags: core i5, core i7.
when i set to AND the logic is, ‘laptop’ AND ‘desktop’ OR ‘core i5’ AND ‘core i7’, wich would turn nothing as there is nothing with ‘core i5’ and ‘core i7’ together.
if i set to OR it would be, laptop OR desktop OR core I5 Or core i7, which practically means everything, and is almost useless.
What i want is it to be ‘laptop’ OR ‘desktop’ AND ‘core i5’ OR ‘core i7’ which is the common thing to search.
So practically asking to set the relation between fields selected to search (example, categories and tags) be AND and relation between terms be OR. is that possible. which is the narmal thing to be and not the inverse it is now on all searches.
]]>Lets say:
Floors category requirement and 1000$ requirement before free shipping.
Curtains category requirement and 500$ requirement before free shipping.
Is this possible?
]]>I’m playing with the free version for the first time. I set up a rule to display a container in Generate Blocks/Press. The only choices I see are And not Or. I want to set conditions to show the container if any of 5 fields has any values. I’m not seeing how to do that.
]]>How can I delete OR text near Add to cart button with custom css?
This is screenshot for show you where appear “OR” text. This element appear only on my smartphone, when I see in responsive mobile mode on my pc browser, I don’t see this OR element.
I attach screenshot for you: https://prnt.sc/XhH3EpaFuJC-
Can you help me please?
Best regards
]]>how is it possible to combine two (or more) taxonomies so that a notification is sent only if all of them are true?
Example (using the Plugin WPAdverts):
advert_location/Berlin AND advert_category/househunting
I also have the taxonomy advert_category/houseoffer but don’t want to send a notification when something is posted there.
When I check both taxonomies in the settings it is interpreted as OR.
Thank you
Titus
I do want to create a query where I search posts by several taxonomies.
TWO of the taxonomies should be searched in an AND relation, while these TWO and a THIRD should be searched in an OR Relationship.
Let me explain this on hand of some “dummy” code:
$args = array(
'post_type' => 'post',
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'this_tax_shall_query_its_terms_in_OR_relation',
'field' => 'slug',
'terms' => array( 'quotes' ),
'relation' => OR // not supported?!
),
array(
'relation' => 'AND',
array(
'taxonomy' => 'tax_one',
'field' => 'slug',
'terms' => array( 'post-format-quote' ),
),
array(
'taxonomy' => 'tax_two',
'field' => 'slug',
'terms' => array( 'wisdom' ),
),
),
),
);
$query = new WP_Query( $args );
So basically, this_tax_shall_query_its_terms_in_OR_relation
should look for posts that are in EITHER of its terms, while it should make sure that any terms selected in tax_one
or tax_two
are ALL applied, and the relation between these two must be AND, as well as the relation between these two and the this_tax_shall_query_its_terms_in_OR_relation
must be AND
This is helpful, for example, if you have this setup:
– this_tax_shall_query_its_terms_in_OR_relation
== this defines an access level, example level 1, 2 and 3. You may want to show a CHECKBOXES input to let the users find posts in level 1 OR level 2 at the same time (and since no two or more access level would be ever assigned to the same post, you need OR here)
– the tax_one
and tax_two
are just “normal” taxonomies for example countries and topics. Here, you want the user to NARROW DOWN the results, and thus, you need AND.
As well you NEVER want to show a post that has (example) access level 1 OR any of the term_one
/ term_two
. You would only want to show posts in term_one
/ term_two
that ALSO have the selected this_tax_shall_query_its_terms_in_OR_relation
(access level)
I hope this makes sense.
Basically, it is the inverse of the example here https://developer.www.ads-software.com/reference/classes/wp_query/#taxonomy-parameters > Nested Taxonomy Handling, with an OR relation between the _single terms_ of the first taxonomy.
And by my best will, this seems impossible? If so… that is a huge shortcoming. I cannot believe this so I assume I just don’t “see it”?
]]>This is my env:
WC: 6.9.4
WP: 6.0.2
Braintree for WooCommerce Payment Gateway: 2.8.0
PHP: 8.1
Device: iPhone 13
iOS: 16.0.3
Apple Pay does not available on this iPhone.
Check this image: https://ibb.co/42N5vjP
I tested on this device, on checkout page, it keep showing “-OR-” text.
If the device does not support Apple Pay, should we hide this text?
What’s going wrong here?
]]>