WordPress Multiple Thumbnail Support

I am searching this solution for sometimes, like how to make post/custom post featured image to be multiple. Lucky i found some insight, so let’s just check it out. Edit functions.php at active theme’s folder and add the code below : /* SETTING ENABLE THUMBNAIL SUPPORT */ add_theme_support( ‘post-thumbnails’ ); Go to this link https://wordpress.org/plugins/multiple-post-thumbnails/ …

Laravel – Migration : Syntax error 1071 specified key was too long

The first try Laravel to migrate then i got error Syntax error or access violation : 1071 Specified key was too long. Thought Mysql have some error or Laravel version (5.6) not compatible with current Mysql, so i try to rollback Laravel version to 5.4 and still got that error when migrate. So bellow is …

Woocommerce Bulk WP_Options Session & Transient

WP_Options is the table where woocommerce saved their transients and sessions of the customer’s activity(cart,wishlist,etc). So along the time it will get bulky in the cases i had seen it’s over than 1 gigabyte and it isn’t normal for me. We can delete the transients and sessions through menu wp-admin => woocommerce => system status …

WooCommerce Set Product Display Per Page

Simply just add this code below to your theme functions.php // Display 24 products per page. Goes in functions.php add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 24;’ ), 20 );

WooCommerce Disable Add to Cart

Simply just add this code below to your theme functions.php /* REMOVE ADD TO CART */ remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’); remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );