Tag Info

New answers tagged

0

Add below hook to your theme function.php file add_action( 'pre_get_posts', 'custom_pre_get_posts' ); function custom_pre_get_posts( $q ) { if ( ! $q->is_main_query() ) return; if ( ! $q->is_post_type_archive() ) return; if ( ! is_admin() && is_shop() ) { $q->set( 'tax_query', array(array( 'taxonomy' ...


0

I check your query and it's working fine without any errors or empty results. But in addition if you remove INNER JOIN from wp_terms table its also working because you are not getting anything from that table and it is not used in WHERE clause also. SELECT ID, `post_date` , `post_title` , `post_content` , `guid` FROM `wp_posts` as post INNER JOIN ...


0

You can use wp_get_post_terms() $categories = wp_get_post_terms(get_the_ID(), 'product_cat', array("fields" => "names")); print_r($categories); The names of the product categories are returned as an array so you can either loop through them with a foreach or you can turn it into a string for example: $categories_list = implode(",", $categories); If ...


1

Add the following to your theme's function.php. Default values are shown below, except changing 'number' from 45 to 15. Only the changed values need to be included, so you can either leave the default values or remove/comment out those lines. For Wordpress Tag Cloud widget: function custom_tag_cloud_widget() { $args = array( 'smallest' => ...


0

You can achieve that using woocommerce gravity forms addon


1

WooCommerce adds classes to indicate when a product has a thumbnail specified, so you can address this with CSS. .product .images { display: none; } /* hide images div by default */ .product.has-post-thumbnail .images { display: block; } /* show images div when thumbnail is present */


1

A cleaner way to display a delimiter would be a CSS-border (like Aibrean suggested). But you can set up the filter to fit your needs: add_filter( 'woocommerce_breadcrumb_defaults', 'custom_woocommerce_breadcrumbs' ); function custom_woocommerce_breadcrumbs() { return array( 'delimiter' => '<li class="separator"> | </li>', ...


1

You should check WooCommerce -> Settings -> Emails (tab) and On the "New Order" sub-link you'll need to add your clients email there, otherwise Woo will use the default admin email address.


1

WooCommerce uses a custom post type called product for its product. Your shop page appears to be looking for a products archive. I can tell this because of the slug - post-type-archive-product Have you tried renaming your custom shop template file archive-product.php? This should override the default archive template.


-1

Please set the template to Default template in the page edit. Thanks, sharma Chelluri


0

Here is a bit of code I am using for mine its for recent products but is doing the job. Just add to page you want to show them on. [recent_products per_page="4" columns="4" orderby="rand" order="rand"]


0

The outdated files are in your theme's woocommerce folder (unless the theme has stored them elsewhere, but that is the default). You don't need this folder per se and can rename it (which is the more temporary way than flat-out deleting it) and WooCommerce will work. If you purchased the theme you could also contact their support and see about purchasing an ...


1

There is no actions/filters to hook to. You need to override standard WC_Email_Customer_New_Account class and implement your own logic. To do it you need to create your own class which will inherit that class and register it. class WPSE8170_Email_Customer_New_Account extends WC_Email_Customer_New_Account { function trigger( $user_id, $user_pass = '', ...



Top 50 recent answers are included