E
E
errorrare2021-05-31 02:35:13
WordPress
errorrare, 2021-05-31 02:35:13

How to make the YITH filter for Woocommerce applied not to all product blocks on the page?

Hello.
If the following problem: products from the category are displayed on the page. After these products, there is a block with other products - screenshot .
When applying filters by attributes, they are applied to all products on the page - screenshot .
How can I force the filter to be applied only to the first block?

Products are displayed using short codes.
Shortcode for the first block:

[products limit=9 columns=3 category="ID_текущей_категории" paginate=true]

Shortcode for the second block: [products limit=3 columns=3 orderby="rand"]

Tried pulling out products for the second block using WP_Query, but it didn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
foxayb, 2021-05-31
@foxayb

Option - move the second block behind the tag with the products class, into a separate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question