Wed
23
Sep 09
How to exclude an image from your gallery? That’s the question I’ve been asking myself a few days ago. Obviously, WordPress doesn’t provide a solution for this action out of the box so I had to get some help. As usual, Google wasn’t shy and came up with a lot of suggestions. First, I tried to hack my functions.php according to this awesome post from the development team at Code Greene. Yes, it worked out quite well but I didn’t like all the hassle … and I kinda fried my functions.php because the provided code was full of HTML entities (you know, & instead of & and the like).
So, I had to look further and I stumbled over a nice little plug-in called Cleaner Gallery. This plug-in mainly takes care of the invalid XHTML that WordPress produces when using the gallery shortcode. Additionally, it provides the user with a few more features not the least of it the ability to exclude or include any images from your gallery. Just install it, take a look at the provided readme.html and there you go. Nice work!
