Forums

Changing image size to custom size in gallery. (1 post)

  1. sponge.nika
    Member
    Posted 4 months ago #

    In My Template I use this code to show the content gallery. The default size of the image size gallery is 51x51.

    $gallery_shortcode = '[gallery id="' . intval( get_the_ID() ) . '" columns="5" width="200" height="100"]';
       		print apply_filters( 'the_content', $gallery_shortcode );

    How can I change the width, height of the image in the template file.

    Thanks.

Reply

You must log in to post.

About this Topic