{"id":76,"date":"2007-06-11T17:02:43","date_gmt":"2007-06-11T22:02:43","guid":{"rendered":"http:\/\/www.pixelwit.com\/blog\/2007\/06\/11\/wordpress-image-gallery-gotchas\/"},"modified":"2009-08-13T21:55:02","modified_gmt":"2009-08-14T02:55:02","slug":"wordpress-image-gallery-gotchas","status":"publish","type":"post","link":"https:\/\/www.pixelwit.com\/blog\/2007\/06\/11\/wordpress-image-gallery-gotchas\/","title":{"rendered":"WordPress Image Gallery Gotchas"},"content":{"rendered":"<p>I&#8217;ve been considering various open source image gallery solutions for my <a title=\"Open Source Blogging Software\" href=\"http:\/\/wordpress.org\/\">WordPress<\/a> blog but I couldn&#8217;t decide which one would best meet my needs.  Heck, I wasn&#8217;t even sure what my needs were so I decided a bit of research was in order.  The most helpful information I found was an <a title=\"WordPress Plugins for Images\" href=\"http:\/\/lorelle.wordpress.com\/2007\/02\/07\/wordpress-plugins-for-images-photographs-and-graphics\/\">Image Plugin article<\/a> on <a title=\"WordPress Information Blog\" href=\"http:\/\/lorelle.wordpress.com\/\">Lorelle&#8217;s site<\/a> where she discusses the most common and popular solutions for working with images in a WordPress blog.  After reading her post and many of the articles linked within it I decided I&#8217;d install <a href=\"http:\/\/gallery.menalto.com\/\">Gallery2<\/a> and the <a title=\"WordPress Gallery2 Plugin\" href=\"http:\/\/codex.gallery2.org\/Integration:WPG2\">WPG2<\/a> plugin to get the most powerful and flexible system while maintaining modularity and simplicity.  At least that was what I was hoping for.<!--more--><\/p>\n<p>Before I say too much more, I think it&#8217;s only fair to point out that I am a &#8220;tweaker&#8221;.  I&#8217;m never satisfied with things in their original condition.  Anything you can make, I can make better by adding more RAM and\/or a hood scoop.  \ud83d\ude09  In the name of Foreshadowing I&#8217;ll note that this does not bode well for the Gallery2 and WPG2 combo.<\/p>\n<p>Since <a href=\"https:\/\/www.pixelwit.com\/blog\/2007\/03\/web-hosting\/\">my web host<\/a> uses AutoInstalls, installing Gallery2 was a snap.  I made some galleries, uploaded images, activated all the included themes and tested things out.  I was pretty impressed.  Ratings, descriptions, titles, JavaScript effects, borders, viewing statistics, image manipulation, slide shows&#8230; Gallery2 did a pretty good job handling nearly <strong>every<\/strong> task associated with managing and creating an image gallery.  But I didn&#8217;t really want or need all those features just yet which leads me to my main concern regarding Gallery2, <em>it has so many features that performing some of the most common tasks, like modifying your gallery layout, can be rather daunting<\/em>.<\/p>\n<p>To help get my Gallery2 images into WordPress I downloaded and installed the <a title=\"WordPress Gallery2 Plugin\" href=\"http:\/\/codex.gallery2.org\/Integration:WPG2\">WPG2 plugin<\/a> and followed the installation instructions.  The first thing I noticed was that my sidebar was missing.  This is because WPG2 starts by calling the header of your theme then stripping out &#8220;the loop&#8221;,  injecting the Gallery2 code, and finally appending your theme&#8217;s footer to tie it all together.  If your theme&#8217;s sidebar isn&#8217;t called from the header or footer files (the index file for example), the sidebar won&#8217;t be displayed.  I like my sidebar and want to keep it around so I searched for a way to bring it back.  I needed to copy my theme&#8217;s <a title=\"How to Modify Your Header File\" href=\"http:\/\/codex.gallery2.org\/Integration:WPG2_How_To_Create_Custom_Header\">header<\/a> and <a title=\"How to Modify Your Footer File\" href=\"http:\/\/codex.gallery2.org\/Integration:WPG2_How_To_Create_Custom_Footer\">footer<\/a> files, modify them to accommodate the new structure (rearrange div tags), rename them and add them to my theme&#8217;s folder.  Then everything looked funny so I needed to juggle my CSS file around and integrate the Gallery2 CSS as well.  I can&#8217;t say the process was a smooth one.  After much frustration I finally got everything running but there was still a lot of room for improvement.  The Gallery2 logo needed t be <a href=\"http:\/\/codex.gallery2.org\/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo\">removed<\/a>, the Gallery2 sidebar needed to be removed&#8230; basically I would need to learn everything in the Gallery2 <a href=\"http:\/\/codex.gallery2.org\/Gallery2:Themes:How_To\">Themes:How To<\/a> section.<\/p>\n<p>This was getting to be a lot of work and the image gallery was straying further and further from my original goals of Modularity and Simplicity.  So now I&#8217;m forced to reconsider my options.  Although Gallery2 and WPG2 can be a very flexible and powerful combination they also have rather steep learning curves.  Since I&#8217;m looking for something considerably different from a standard Gallery2 and WPG2 installation, and I don&#8217;t want to spend a lot of time learning how to make modifications, my best option might be to forgo a flexible solution in favor of one that better meets my current demands.<\/p>\n<p><strong>Update:<\/strong> <a title=\"Image Gallery Plugin Recommendation\" href=\"https:\/\/www.pixelwit.com\/blog\/2007\/06\/image-gallery-plugin-recommendation\/\">Learn what image gallery solution I decided to use<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A tale telling the trials and tribulations of some common WordPress image galleries and the lessons learned.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[19,38,44,52,20],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-site-development","tag-bluehost","tag-gallery","tag-plugin","tag-review","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":0,"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pixelwit.com\/blog\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}