A new Photo Gallery

Friday, February 3rd, 2006

Daddy has created a new photo gallery for me. He got a plugin from a very nice man called Wildbits. Well that is not his real name but we don’t know his real name. That is his website name and if you click on the name you can go and see his website - some of it is German but the link is to a page in English all about the photo gallery. Dad has copied some instructions below for Mum to use:
1. Single gallery
You have created a new gallery named “winter” with pictures. This gallery should now be displayed on a new static page.
For this, you first need a new, static page. In my case, I have created a page named “Fotos”. Now in WordPress you see the id for this new page. Note this id for later. Go to the gallery management and choose your gallery. There is a field for “page_id” . Fill in the id of your static page, save the changes and return to the static page. Edit the text of the page and type (square brackets)mygal=winter(square brackets). Save the page. Now you have a gallery with thumbnails in your blog.

2. Collection of galleries
Maybe you want an overview of all your galleries in your blog (like this one).
First you must create all the galleries and there static pages as described in 1. Next step is to create a new, empty static page an place the tag (square brackets)mygallistgal(square brackets) in the page. That’s all.

3. Random picture in the sidebar of your blog
If you want to show your visitors a random picture from your galleries, just put the following code in sidebar.php of your template:
(triangle brackets) ?php if (function_exists(‘myrandompic’)) myrandompic(); ?(triangle brackets)

4. A small gallery
To show a small gallery inside an entry of your blog, you need a different tag. For example, you have created a new gallery named “street” with three pictures (see documentation, page 10). Step 1 is not necessary in this case. In your post, place the tag (square brackets)myginpage=street(square brackets). The gallery will show up in your post.

5. Single pictures
To place single picture in a post, you can use the (square brackets)inspic=$id(square brackets). Maybe you want to include a picture with the id 12 form you gallery “winter” in a post. So you include the tag (square brackets)inspic=12(square brackets) in the post. There are a few more options for the tag you can use.
If you want to align the picture to the left or right: (square brackets)inspic=12,left(square brackets) or (square brackets)inspic=12,right(square brackets)
If you want to show a bigger picture on click: (square brackets)inspic=12,left,fullscreen(square brackets) or (square brackets)inspic=12,,fullscreen(square brackets) (center)
If you want to show the thumbnail or a scaled picture: (square brackets)inspic=12,left,fullscreen,thumb(square brackets) (works best with Lightbox JS turned on in the myGallery options).