Using WordPress [gallery]
Just a simple quick explanation of attaching images to a post and making a gallery of it. When you’re editing a post or page, you can upload media with the WordPress media upload function and set images into a post.
The WordPress gallery function will let you have it so that not only can you have thumbnails neat and tidy within your post but when clicking on them will send you to a gallery page that you can navigate from one to another. ComicPress already has this template inside of its theme and has been there since before CP 2.5, however not many people have actually used it.
When editing a post or page, the button to choose is this one:
This ‘sun like’ icon on the panel when editing a post or page allows the system to know that you are wanting to add this image to the particular gallery that is embedded on the post or page.
The next step is where you want the gallery to appear inside your post you place this short code:
[ gallery ]
NOTE: No spaces inside the brackets, spaces are there currently so it does not trigger.
Having the code [ gallery ] will tell the WordPress CMS to translate that out to the core gallery functions that are built into WordPress itself.
When you upload a picture into the post using the add to gallery button on the post, it will take a thumbnail image, that thumbnail image can be set width and height in the WordPress dashboards settings. In WordPress 3.0 its the wp-admin -> settings -> media panel and you can set 3 different sizes, the thumbnail, medium and large sizes. These are created automatically when you use the media uploader to upload your image.
If you want the gallery function to work properly so that it displays those images as part of the gallery, do *not* click the ‘insert into post’ button after uploading the media. It still will attach those pictures just not add them to the post. It will however add them to the [ gallery ] code where ever you place that.
Here are some pictures of my dad to show you.
SHORTCODE SHOULD BE HERE:
Notice the above also included the other image that I have placed in this post to describe what button to place. One of the flaws of using the gallery function is that the controls of what goes into the gallery is not coherent enough to the average user to figure out. Going to the media library on your dashboard I did not find a place to add and remove images to a gallery that’s attached to a post.
If you click on any pictures in the gallery I placed in this post, it will go to another page that will let you go back and forth in the gallery and allow your users to comment on each one if they like.
In my opinion I feel the Gallery function needs a better tree structure and items to determine what gets attached as a gallery and what is embedded into the post out of the gallery, however, for now this is what we have to work worth.
In the gallery itself after clicking on an image, you can have a plugin like lightbox to expand the image nicely on the screen if the image doesnt fit the width available properly.
Pablo uses it over at Wapsi Square for his Wapsi Girl Project. I have been trying to show David Willis how to use it for his cast page. Notice on their pages they have extra text and information on the particular images those can be set in the media library per the image you have associated with the page.
WordPress.ORG Codex on Gallery: http://codex.wordpress.org/Gallery_Shortcode