Sort by price woocommerce by ID post_meta
Sort by price woocommerce by ID post_meta
Sort by price woocommerce by ID post_meta
Let’s assume you have a custom page with the name/title “Hello”. and add the following code to your themes functions.php or you can also create your own plugin. Code snippet: function my_custom_page_category_hide(){ $page_title = $wp_query->post->post_title; if($page_title==”Hello”){ echo ‘<style> .box-text-inner { display: none !important; } </style>’; } } add_action( ‘wp_head’, ‘my_custom_page_category_hide’ ); Just paste the above … Read more
Let’s assume you have a custom page with the name/title “Hello”. and add the following code to your themes functions.php or you can also create your own plugin. Code snippet: function my_custom_page_category_hide(){ $page_title = $wp_query->post->post_title; if($page_title==”Hello”){ echo ‘<style> .box-text-inner { display: none !important; } </style>’; } } add_action( ‘wp_head’, ‘my_custom_page_category_hide’ ); Just paste the above … Read more
display first sale product in shop
Limit total quantity of products in WooCommerce group product
function_exists() isn’t going to help you here. That needs to be in the parent theme for you to be able to do anything. The only way you’re going to be able to change this from your chid theme is to use remove_filter() to remove it from the parent theme, and then copy it into your … Read more
Is there a way to show Single Variation prices in the product loop when filters or attributes are active?
Category Tree In WooCommerce Product API
How to add a greeting message upon logging into WordPress for certain user role
category_name is for category taxonomy, sense products use the product_cat you will need to add a tax_query into $args. Like this. $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 20, ‘tax_query’ => [ ‘taxonomy’ => ‘product_cat’, ‘field’ => ‘name’, ‘terms’ => ‘trofee’, ], ‘meta_query’ => array( ‘relation’ => ‘OR’, array( // Simple products type ‘key’ … Read more