How to fix WordPress Photos Sideways Problem

Install this plugin Fix Image Rotation

Fix Image Rotation plugin fixes image orientation based on EXIF data. Fixes the mis-oriented images clicked via mobile phones.

Functionally it filters all uploads and if EXIF->Orientation is set to a number greater than 1, then the image is re-saved with a new orientation before the image is processed by WordPress.


Redirect users after add to cart in woocommerce (WordPress)

Redirect users to cart after add to cart

This is the default option that is build into WooCommerce. You can find the option in the WooCommerce -> Settings -> Products -> Display area. When the option “Redirect to the cart page after successful addition” is checked it will redirect all users to the cart after adding a product to the cart.


Redirect users to a custom page



function my_custom_add_to_cart_redirect( $url ) {
$url = get_permalink( 1 ); // URL to redirect to (1 is the page ID here)
return $url;
add_filter( 'woocommerce_add_to_cart_redirect', 'my_custom_add_to_cart_redirect' );

Modifying the WooCommerce Product Query for Product Loop

How to change what products show up in the shop loop ?

Add this to your theme's functions.php or any plugin file.

add_action( 'woocommerce_product_query', 'show_active_events_only' );

function show_active_events_only( $q ){
$todays_date = date(‘Y-m-d’, time());
$meta_query = $q->get( ‘meta_query’ );
$meta_query[] = array(
‘key’ => ‘wcv_custom_product_enddate’,
‘value’ => $todays_date,
‘compare’ => ‘>=’

$q->set( ‘meta_query’, $meta_query );

Responsive Design: One Design for Each Job: Not Enough!

The responsive approach begins to make it’s way, users appreciate the advantages, designers and developers around the world support it. If we’re lucky enough to meet a client who wants to produce his or her site with this technology, we should be happy because we have the opportunity to work on a modern project. But we must also be concerned that when working on a good responsive project, work is harder and it’s hard to convince a customer to pay more for a responsive site than for a normal site. We can push the client to pay more if they propose to develop a dedicated mobile site or application for iPad, but this isn’t our case. We want our project to be “cross-device” and “avaiable in all sizes.”