Adding custom attribute to [gallery] shortcode
-
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 specifyif 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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding custom attribute to [gallery] shortcode’ is closed to new replies.