memwebproject
Forum Replies Created
-
Forum: Plugins
In reply to: [Menu Item Visibility Control] is_product_category and all subcategoriesmy custom code is not working in product page, why? i upgraded woocommerce, in category and subcategories menu appears
my code is:
is_product_category( ‘optika-microscopes’ ) || cat_is_ancestor_of( 653, get_queried_object()->term_id ) || (is_product() && has_term( get_terms( array( ‘child_of’ => 653, ‘taxonomy’ => ‘product_cat’, ‘fields’ => ‘name’ ) ), ‘product_cat’ ))can you help me?
Forum: Plugins
In reply to: [Menu Item Visibility Control] is_product_category and all subcategoriesthaks a lot for your fantastic support!!!
best regards
Forum: Plugins
In reply to: [Menu Item Visibility Control] is_product_category and all subcategorieshi,
for example using this code
is_product_category( 'optika-microscopes' ) || cat_is_ancestor_of( 653, get_queried_object()->term_id ) || (is_product() && has_term( array('brightfield','stereomicroscopes','Inverted Microscopes','camera digital solutions','Refractometers & Polarimeter'), 'product_cat' ) )i have to add all my subcategories ( i have a lot of subcategories) and it’s working for the 5 subcategories.
i’m looking for a solution for all subcategories of ‘optika-microscopes’
i hope you can help me
best regards
Forum: Plugins
In reply to: [Menu Item Visibility Control] is_product_category and all subcategorieshi,
i tryed with
is_product_category( 'optika-microscopes' ) || cat_is_ancestor_of( 653, get_queried_object()->term_id ) || (is_product() && cat_is_ancestor_of( 653, get_queried_object()->term_id ))but it’s not working in product page.
is it the right way?best regards
Forum: Plugins
In reply to: [Menu Item Visibility Control] is_product_category and all subcategorieshi,
thanks for your replay.
it’s working in all subcategories, but menu disappears in the single page product.
a little help more?best regards
I installed BackUpWordPress on 2 different hosting, and both after last plugin update start showing this alert. This not happened when I installed the plugin few mounth ago.