Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Swayne3 on "Adding custom attribute to [gallery] shortcode"

$
0
0

Hi,
I'm modifying one WP theme and I'd really like to add a simple attribute to gallery shortcode whether to crop image thumbnail or not. And then in the process of creating a thumbnail I would like to just specify

if crop == 'yes' { do this }
else { do that }

Is that possible? And if so than how? Thanks for any answer!

Edit:
Theme has it's own registered gallery shortcode with some modifications I think, but I simply can't make this work...


Viewing all articles
Browse latest Browse all 8245

Trending Articles