WordPress 2.5 and later has a built-in Gallery feature that lets you add a gallery of images to a post or page on your WordPress blog. (Link: http://codex.wordpress.org/Gallery_Shortcode )
You can use the size option to specify the size of the sketch you want to display. Valid values โโinclude Thumbnail, Medium, Large, and Full. The default is thumbnail. Image sizes for thumbnails, medium, and large can be configured in the WordPress admin panel.
T. [gallery size="medium"]
My question is . I am trying to hack the [gallery] shortcode to allow custom sizes during input - without trying to do this through the admin panel. I would like to use something like [gallery size="145x160"] .
Instead, download the bloated plugin, I would prefer to work with what is already there, and I'm not sure where I need to go to my file structure in order to make changes. I am familiar with PHP, but I am afraid that I will make changes, and then when I update future versions of WP, it will overwrite what I set in motion.
Can anyone help me with this?
Many thanks!
php wordpress image-gallery gallery shortcode
Mike B.
source share