This helps explain how to format galleries in WP without plugins
Galleries without plugins(2 posts)
This helps explain how to format galleries in WP without pluginsPosted 3 years ago #
i've been trying to write a new shortcode for galleries. i'm failing pretty miserably so far.
i wanted something like:
[my_gallery columns=3] <img src="img1.png"> <img src="img1.png"> <img src="img1.png"> [/my_gallery]
b/c i really hate the idea that galleries either display ALL the attached images, or you have to manually go into the shortcode and exclude the ones you don't want... which could be a lot depending on your post. and you have to do it by attachment ID. who knows THOSE off the top of their head?
but i am having a hard time parsing the different images, keep getting all kinds of extra nasty markup.Posted 3 years ago #
This topic has been closed to new replies.