Create custom size Images in WordPress

Steps to follow to add custom Image sizes

  1. Go to Functions.php
  2. Register new Image Size

if ( function_exists( ‘add_theme_support’ ) ) {
add_theme_support( ‘post-thumbnails’ );
set_post_thumbnail_size( 223, 137, true );

add_image_size( ‘thumbnailnew2’, 225, 225, true ); //featured james

}

3.  Install the plugin to generate the new image size

 

Useful resources

https://web-design-weekly.com/snippets/recent-post-shortcode/ help you to create custom post with shortcode

https://wpshout.com/adding-using-custom-image-sizes-wordpress-guide-best-thing-ever/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s