All in One Gallery – WordPress plugin
December 1st, 2008 | Posted in play / watch | comment this | RSS 2.0 | trackback |Display and browse all the images on your wordpress website in one place using the new [ gallery ] shortcode.
All in one Gallery is my first plugin for wordpress and my first program in php. I wanted to have all the pictures that have been uploaded on my website to be displayed and browsable in one place. I didn’t want to use another system then the default new gallery system of wordpress, because I wanted full compatibility and prefer to be pluged to the core of wordpress instead to depend on another gallery system. So the plugin is simply looking at all the categories, then check if there are images in all the category’s posts and, if there are, use the [ gallery ] shortcode. I use it with lightbox-2 plugin and cleaner-gallery plugin.
All-in-One-Gallery plugin work with the new [ gallery ] shortcode and therefor only work with recent version of wordpress ( 2.6, maybe 2.5 and probally future released ). Also, I created this plugin for Anna Chocola and myself, so I can’t garanty that it will work properly. But the plugin is so simple that it should work for everyone. You can try it on my website by clicking Image Gallery in the sidebar or on Anna Chocola’s website by also clicking on Image Gallery in the sidebar.
For up to date infos, latest and older versions, please go to the plugin page on wordpress.org
The plugin is pretty simple, there are only 3 options that you can find under Settings/All in One Gallery:
Style and Place the Gallery :
- Select the page where you want the gallery to be displayed. Note that you have to create a page to be use for the gallery.
- Select your color style for the menu, default is blue.
- Select how many columns in gallery (Just changing the attribute of the [ gallery ] shortcode.), default is 4
Exclude categories or Pages:
- In case you have some texts only categories or what ever is the reason why you don’t want some categories to be in the gallery.
Welcome message:
- Switch welcome message ON and OFF
- If ON, the gallery will display a default message that you can alter.
- If OFF, select the category’s gallery to be displayed
It’s also simple to install, like most wordpress plugin:
- Download all-in-one-gallery.zip
- Unzip and Upload the folder to wp-content/plugins/
- Activate in the plugins tab in your dashboard
- Create a page for the gallery
- Set your settings under Settings/All in One Gallery
There might be other plugins that do that sort of things but I only seemed to find plugin that replace the default gallery system. I don’t want to change the core of my wordpress and also wanted to try something in php.


January 7th, 2009 at 4:07 pm
Nice plugin! I like it and download .
it’s really useful for me.if u give a demo link, that’s very cool!
anyway, thx dude.
January 28th, 2009 at 7:44 pm
hi, i want to ask that; when i add too many picture, the gallery is stretch downwards. but i dont want the site view. how can i change the viewer?
February 7th, 2009 at 6:46 pm
ismail:
I don’t really understand what is your problem, sorry. Can you provide a link, so I can see your gallery.
February 14th, 2009 at 11:28 pm
Hi,
I installed your plugin, but I’m not able to save the settings. This way also the Browse page will not be used by this plugin.
What can be wrong here?
Best regards,
Wessel
February 15th, 2009 at 10:40 am
Hi Wessel,
I am not really sure what to say, I am not expert with how WordPress deals with it’s database.
Are you using the latest wordpress? Also are you using a plublic host or free host, it could be that you don’t have permissions to write to your database.
Sorry I can’t help you more. I am using the build-in function for plug-in in the wordpress’s API. Wich means that if your wordpress install let you modify all the default settings ( general, writing, reading, discussion, etc… ) the all-in-one-gallery’s settings should save in the same way.
Hope you will find a solution or another plug-in that will do the trick.
February 15th, 2009 at 1:56 pm
hi, can you make it paged if anyone has too many image a page. if you dont make it so, my image pages is longer vertical. :S please help thanks
February 15th, 2009 at 6:19 pm
Good idea,
I see how I can manage this. I am a bit busy at the moment so it might take a while before I update the plugin. Depending on how complicated it is to do.
February 21st, 2009 at 8:33 pm
Hi TM.
Great plugin.
I was wondering if, for future updates, you would consider adding a img class filter (i may have multiple images in one post, and want only some of them to show up in the gallery).
So by using a certain class with some images, like “show_in_gallery”, i’d be able to filter what the gallery is listing.
Thanks
February 24th, 2009 at 12:32 pm
Hi toma,
I had a though about what you said. That would be a cool feature but it would be to complicated for me to implement.
I would need to add a preview of the gallery in the settings so you could tick the one you want to display. But that’s not the most complicated thing as I could have a filter to add a tick box in the Media menu of WordPress.
The thing that would be tuff for me is to modify the php function of the gallery to output the extra class when needed. And doing this without having to touch the core function.
I put it on my list of to-do things in case I come across a solution one day.
I’m glad that you like my plug even if doesn’t do everything you want. Thank you for that feedback.
August 7th, 2009 at 4:41 pm
yes, écriture de plugin wordpress, ça c’est la classe ! à bientôt thomas
August 8th, 2009 at 4:09 am
merci!
August 11th, 2009 at 5:09 am
Hello
I love this pluggin, thanks a lot !
I only have a problem with it : I’m using a multilanguage pluggin and it uses &lang= to send the language variable, but as soon as I click a category in All in one gallery, $lang is not send
. Is there a workaround to send extra variable ?
Thank you
August 12th, 2009 at 1:47 pm
Hi lordfpx,
Thank you for your nice comment. I don’t know the plugin you are using but I had a look at your website and I guess that it had the lang variable to every link when the page is generated.
There is a priority setting for when the content/action of the plugin has to be done. If you go to plugins>editor and select All in one gallery, there is a line a the end, just before the CSS that look like this:
add_action(‘the_content’, ‘addContent’);
add 5 as a third argument, like that:
add_action(‘the_content’, ‘addContent’, 5);
that should make it run before your language plugin, assuming that the language plugin didn’t set a priority. The lower the number the earlier the plugin will do it’s job. If that doesn’t work look for a line with add_action in your language plugin and set it to 12. Hope that will fix your problem, Please let me know if it did.
check out the doc if you need:
http://codex.wordpress.org/Function_Reference/add_action
August 12th, 2009 at 3:34 pm
Thanks for your help, unfortunatly, that doesn’t work
In fact, I’m using qTranslate and it seems to be a quite complexe plugin.
Is there a way to take the $_GET['lang'] and add it to your script. (I tryed, but I can’t see how to add it to the function).
See you !
August 24th, 2009 at 4:13 am
Sorry lordfpx,
I which I could help but I am kind of busy at the moment, I hope you will find a solution or another plugin that can do the same thing as All in one Gallery.
Maybe ask the person who did qTranslate.
October 25th, 2009 at 2:59 am
Very nice plugin. I tried to install it but can we put a link on the picture that could send to the post where the picture is.
Thanks
Julia
February 3rd, 2010 at 5:14 pm
February 3rd, 2010 at 7:00 pm
ow, i can’t upgrade it, please what is the problem
February 3rd, 2010 at 7:30 pm
i can’t update it it can’t be run at admin panel, i turned it the first version again please take a look http://www.askulkesi.com/askin-resmi-2
thanks
February 4th, 2010 at 3:08 am
Hi Ismail,
Is it that you can’t see the options in the admin panel? Are you admin or editor?
I am going to release a update with some minor changes , like make it possible for author and editor to access the options.
February 4th, 2010 at 3:32 am
Ok I think it might be that user role problem, is it that you can’t see the settings menu in the admin panel?
February 4th, 2010 at 9:01 am
hi tm,
i dont know what is the matter and i am admin my site http://www.askulkesi.com. i tried to run first localhost in my computer. The plugin gives me “you can’t access this page” and then, i uninstall it than reinstal and it run. then, i tried in host server, i update it automaticly, it didn’t run and i uploaded the files by ftp again it didnT run. Then i installed the first plugin v.1. i hope i can explain, i like the plugin and i want to use anyway. thanks and take care
February 7th, 2010 at 12:56 pm
I really don’t know, which version of wordpress are you using?
February 7th, 2010 at 1:32 pm
i am using the last version and i can’t update still
April 27th, 2010 at 6:53 am
Hey, I get a timeout upon loading the settings page…
seconds exceeded in /data/sites/******.nl/www/wp-includes/plugin.php on line 385
so I can’t do the settings… categories are displayed half, and there’s no button!
please help?!
May 18th, 2010 at 6:13 am
@ismail
Did you manage to make it work at the end?
If not you could try to install manually the plugin and set the permission to read and write on the all-in-one-gallery folder and the files inside.
@dirkuijt
Do you have a lot of categories? or a lot of images? Don’t really know were that error come from. That line 385 is about attaching actions in plugins if I remember well.
June 7th, 2010 at 1:36 am
Hey hows it going? I really like this plug in! Its just what I was looking for… Anyway, I have the size “thumbnail” selected but unfortunately my pictures are not resizing ( http://blog.triggervisionmedia.com/?page_id=780 )
Also the “categories” seem a little weird. Any suggestions?
Thank you!
P.S. I have the thumbnail size set up correctly in wordpress.
June 7th, 2010 at 1:40 am
Scratch that last comment I just fixed it… BUT the categories are still screwy
June 7th, 2010 at 1:53 am
Ha so i figured that out too so you can delete all of these comments… I feel like a dumb ass… sorry!
June 7th, 2010 at 2:26 am
That’s all right,
The categories’ looking weird is because it’s still using your template css and a bit of the Gallery css. I need to make the Gallery styling (css) stronger.