I want to run different WordPress websites under the same database

I believe a multisite solution + WooCommerce plugin (which is multisite compatible) would answer to the specifications you have listed. About the multisite installation I strongly recommend you to read: https://codex.wordpress.org/Before_You_Create_A_Network https://premium.wpmudev.org/blog/how-to-build-a-wordpress-multisite-network-with-multiple-domains/ As explained in the tutorial above, you can set different domain names for each of your sites, it just requires an additionnal plugin … Read more

How to get total count for each star rating?

You can use the function get_rating_count() by specifying on each call the value needed. For example : global $product; $rating_1 = $product->get_rating_count(1); $rating_2 = $product->get_rating_count(2); $rating_3 = $product->get_rating_count(3); $rating_4 = $product->get_rating_count(4); $rating_5 = $product->get_rating_count(5); You can read more about the function

WooCommerce HTML after short description if product is in specific category

Woocommerce’s product categories are custom taxonomy terms, so you need to use the taxonomy functions (eg, has_term()) rather than WordPress’ category ones. function filter_woocommerce_short_description( $post_excerpt ) { global $post; if ( has_term( “term-name”, “product_cat”, $post->ID ) ) { $post_excerpt .= “<br/>” . “Test”; } return $post_excerpt; }; add_filter( ‘woocommerce_short_description’,’filter_woocommerce_short_description’,10, 1 );

Woocommerce checkout fields on the same line

Add custom CSS using custom style editor, for below classes and IDs .woocommerce-billing-fields__field-wrapper { display: flex; flex-wrap: wrap; } .woocommerce form .form-row { display: inline-block; } .woocommerce form .form-row input.input-text { max-width: 252px; } #billing_first_name_field { order: 1; } #billing_last_name_field { order: 2; } #billing_company_field { order: 3; } #billing_country_field { order: 4; } #billing_address_1_field … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)