Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Justin Sternberg

    (@jtsternberg)

    If you’re importing as the featured image and your theme supports featured images, that is the size that will be used. If you’re instead importing the image to the post, there is a filter in the plugin for overriding the image size. If you wanted to instead use the “medium” image size created by WordPress, you would filter the image size like this:

    add_filter( 'dsgnwrks_instagram_image_size', 'YOURPREFIX_instagram_img_size' );
    function YOURPREFIX_instagram_img_size( $size ) {
    
    	return 'medium';
    }

    That is a filter on the $size parameter passed to wp_get_attachment_image_src() so you can use any values you would use there. wp_get_attachment_image_src() on the codex: http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src

    Or you can always set the insta-image class to set the size in CSS instead.

    Thread Starter Kenn

    (@kennhedgesgmailcom)

    OK, so I am a noob. How and where would I place the add_filter code? If I were to use the CSS option, how would I use it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set default Image display size for a post’ is closed to new replies.