WordPress 2.5 gallery feature

Recommended Videos

How to create and use a WordPress image gallery
How to create and use a WordPress image gallery
Creating a Custom Flickr Photo Gallery for WordPress
Creating a Custom Flickr Photo Gallery for WordPress
WooCommerce Product Images Not Showing Mobile *FIX*
WooCommerce Product Images Not Showing Mobile *FIX*
Astra Custom Layouts - The Most Powerful Feature In The Astra Pro WordPress Theme
Astra Custom Layouts - The Most Powerful Feature In The Astra Pro WordPress Theme
WordPress 2.9 - a Tour of the new Image Editing Features
WordPress 2.9 - a Tour of the new Image Editing Features

WordPress 2.5 has a built in gallery feature.Gallery feature in WordPress 2.5 is pretty basic but neat.If you have upgraded to wordpress 2.5, Gallery feature lets you add an image gallery to a Post or Page on your WordPress blog.

How to use the Gallery feature in WordPress 2.5?

Gallery feature in WordPress 2.5 is pretty easy to use.Upload all your photos and simply type the shortcode in a post or page to display a thumbnail gallery of images attached to that post or page.

What are the options that can be specified to Gallery shortcode in WordPress 2.5?

There are several basic options that may be specified using the following syntax:


The following are the basic options for the Gallery shortcode
:

“columns” option in Gallery shortcode:

columns” option let you specify the number of columns. The gallery of images will automatically include a break tag at the end of each row, and calculate the column width as appropriate. The default value is 3 i.e. 3 images per row.If columns is set to 0, there will not be any row breaks included. For example, to display a 2 column image gallery, you can specify the gallery shortcode as:

“id” option in Gallery shortcode:

id” option lets you specify the post ID. The gallery will display images that are attached to that post. If no ID is specified then the gallery will display images attached to the current post, by default. For example, if you want to display images attached to post 100:

“size” option in Gallery shortcode:

size” option in Gallery shortcode lets you specify the image size to use for the thumbnail display. “thumbnail“, “medium” and “full” are the valid values for “size” option. The default for size option is “thumbnail“. For example, if you want to display a gallery of medium sized images, then type:

The following are the advanced options for the Gallery shortcode:

“orderby” option in Gallery shortcode:

orderby” option in Gallery shortcode lets you specify the sort order to display thumbnails. if no sort order is explicitly specified, the default is “menu_order ASC, ID ASC”.

“itemtag” option in Gallery shortcode:

itemtag” option in Gallery shortcode lets you specify the name of the XHTML tag used to enclose each item in the gallery. The default is “dl“.

“icontag” option in Gallery shortcode:

icontag” option in Gallery shortcode lets you specify the name of the XHTML tag used to enclose each thumbnail icon in the gallery. The default is “dt“.

“captiontag” option in Gallery shortcode:

captiontag” option in Gallery shortcode lets you specify the name of the XHTML tag used to enclose each caption. The default is “dd“.

For example, to change the gallery XHTML markup to use div, span and p tags, you specify:

How to override the default gallery template in WordPress 2.5?

Speicify a filter attached to the “post_gallery” tag to override the default gallery template in WordPress 2.5.

Related Videos

How to create and use a WordPress image gallery
How to create and use a WordPress image gallery
Slideshow CK - Load your Google photos album in a Wordpress slideshow
Slideshow CK - Load your Google photos album in a Wordpress slideshow
Creating a Custom Flickr Photo Gallery for WordPress
Creating a Custom Flickr Photo Gallery for WordPress
jQuery Fullscreen Image Gallery WordPress Plugin
jQuery Fullscreen Image Gallery WordPress Plugin
How To Display WooCommerce (WCPS 1.12.12) Products Image Slider
How To Display WooCommerce (WCPS 1.12.12) Products Image Slider
6 comments on “WordPress 2.5 gallery feature
  1. Did anyone have any problems with it yet? Just wondering whether i should upgrade or not.

    seo blogger’s last blog post..Competition time

  2. Thumbnails are not created… i don´t know why 🙁

  3. Gallery was a very new feature then in WP 2.5. you should use WP 2.7 for the best experience.

  4. This feature gives flexibility on column per row part, but i want to keep only 2 rows at a time,

    Ex : I want to post 50 thumbnails with link, with [gallery columns=\"4\"] it will break rows with 4 columns but there will be 13 rows , I want to keep that to 2 rows, what else is done it will break pages within (i.e page 1, page 2…..)

    what code need to be use ??
    I try [ gallery columns=”4″ rows=”2″ ] but it didn’t work, any idea ??

  5. Unfortunately there is no option to limit the rows. All images uploaded for that gallery will be displayed.

  6. Thanks Rajesh for fast response,

    But is there any other way to maintain this ?

    I use Flexiupload (with hack) to upload pictures with WP 2.6.2

    But if i insert pictures one by one from gallery, thumbnails permalinks will be “http://www.example.com/?attachment=123” , as per wordpress it should be changed to “http://www.example.com/postname/imagename” but its not working , its may be hack limitation.

    Do u know any plugin or hack which can fulfill my requirement.

    I can use nextgen but not want to use as I prefer attachment page not regular page to display full images.

Leave a Reply

Your email address will not be published. Required fields are marked *

*