next:
prev:  

As I told you about ~ two weeks ago, I updated the base code of WordPress to allow multiple gallery support making myself do:

[ gallery group="2" ]

… and it would show just the items in group 2. I also made it so I can designate items that I didn’t want part of the gallery system. So images could still be posted by themselves and also have a gallery that would show the items in that gallery. The default functionally of WordPress does not allow this so I had to dig deep into the WordPress code to do this. Now I am basing all this code of 2.6.1 and will be submitting it to the WordPress team for them to work on more and make it more efficient.

This was the first version of the work I did. As you can see, all the groups have to be manually changed. No real fun there.

1st Version of the Gallery Groups

1st Version of the Gallery Groups

But I knew I could do better and with an encouragement from a fellow WordPress user on the ticket I submitted to the WordPress team, I went ahead this evening and worked on this:

2nd Version of the Gallery Groups

2nd Version of the Gallery Groups

Everything works minus a few bugs.

  • Order numbers sometimes are wrong. That is because of the blank item at the top that does not have an order value. I am working on a solution.
  • Group Management: Adding & Deleting, which would go to the non-group section. This is going to be a little bit more challenging.

Update Sept 1st 11:40am: This morning at 5am I have completed the one minor bug and you can add and delete gallery groups from the system.

I even made a few improvements in the /wp-admin/includes/media.php file so that when you do insert an image the “title” tag is added to the link so Lightbox picks it up. A problem WordPress seemed to have from the start. In any case… I should have the full patch file on the same ticket (I posted above) in a few days while I work out the kinks. No stone left unturn!

3 Comments | Comments Closed
Sorry, the comment form is closed at this time.