Frequently Asked Questions

1. How do I manage comments assigned to photos?

In order to allow comments to be left on each individual file or folder, I had to use a little trick. Whenever a user leaves a comment on a given file or folder, the comment is actually left on the WordPress Page that the gallery resides on. If you go into your Admin panel under Manage > Comments, you’ll see all the comments for the gallery page.

In order tell what picture or folder a comment was left on, I store the name of the file or folder in the text of the comment within an HTML-style comment. The HTML-style comment is not displayed in the browser (because it’s a comment, of course). In that comment, I put the path to the image or folder, as shown here:

<!--lazy-k-gallery-comment:Animals/P0000199.JPG-->This is a nice picture.

If you want to move a comment, you’ll have to edit that path. Note, since I’m using an HTML comment, you may not see that comment if you’re using the WYSIWYG editor. To see the HTML source, click the “HTML” button on the toolbar.

2. There’s no comments section on my gallery page. Why not?

Many themes are set up to allow commenting on posts but not on pages by default. This isn’t a problem specific to this plugin – it’s just a matter of configuring WordPress to do what you want. First of all, make sure the “Allow Comments” checkbox is set on your page.

If that doesn’t do the trick, we need to add the comments section to your page template. Edit the following file within your WordPress installation: wp-content/themes/default/page.php. If you are using a theme other than “default”, edit the file within that theme’s folder instead. You could also edit this file from your admin panel by choosing Presentation > Theme Editor > Page Template.

In that file, you probably have something like this near the beginning:

<?php (have_posts()) : while (have_posts()) : the_post(); ?>.

Near the bottom you should have something like this:

<?php endwhile; else: ?>.

The “while” and “endwhile” mark the beginning and end of your “loop”. All you need to do is add the following line right before the end of your loop, right before <?php endwhile; else: ?>.

<?php comments_template(); ?>

Now, if you view your pages, each one should have the comments section at the bottom. If you don’t want to allow commenting on some pages, just edit the page and uncheck the “Allow Comments” checkbox.

3. Why do all my comments show up on the root of the gallery instead of on the pictures?

First of all, make sure you added the line to the comments template as listed in the installation instructions. If you did that properly, I’m suspicious of your theme… Here’s what to do.

  1. Submit a comment for a picture in your gallery. It’ll show up on the root instead (that’s what you told me, anway).
  2. Go take a look at the comment in the Admin Panel. Instruction are above in the “How do I manage comments assigned to photos?” section.
  3. Do you see the <–lazy-k-comment:–> stuff? If not, your theme is missing a required line.

    Edit your comments template (see instructions above) and see if this line is present:

    <?php do_action('comment_form', $post->ID); ?>

    If not, it should be right before </form>

Thanks to Thomas for helping me find this problem.

4. Can’t you just show me an example of your comments and page templates?

Sure. Here are the comment and page templates for the default theme included with WordPress 2.0. Just look for the text “Lazy-K Gallery” to find the important parts. If those don’t help, just drop me a line- I’m happy to help out.

5. How can I get your plugin to work with Lightbox or Thickbox?

There are a number of downloads going by those names. I’ve tried a bunch of them and listed the results below. Install the one you want using the instructions on the links below and choose how you want it to be used from the Lazy-K Gallery options page.

For Lightbox:

For Thickbox:

If you find other image viewing scripts that work like these, let me know what they are.

6. Why are my thumbnails so tiny?

Are you using the K2 theme or one derived from it? Take a look at this discussion. I’ll need to learn a little more about CSS if I’m to fix the problem on my end, so if you know of a change I can make to MY code, let me know.

10 Responses to “Frequently Asked Questions”

  1. Will says:


    I am having the root problem.

    But the line from number 3 above DOES exist in comments.php .

    Any other ideas?



  2. Jan says:


    I’ve tried the plugin locally and as I see it, my picture thumbnails are very close to each other. I can’t seem to figure out how to make a space in between the thumbnails..can anyone please help me?

  3. Korey says:

    We figured out Jan’s problem from above. He copied the plugin files into a subfolder of his plugins directory, not into the root of the plugins directory. As a result, his stylesheet didn’t load. Make sure you put those files in the root of the plugins directory.

  4. Nico says:

    verry nice plugin, but i have a little problem!

    if i write a comment and click the send button this comes up…

    Not Found
    The requested URL //gallery/?lzkfile=test1%2FSprung+04.JPG was not found on this server.

    i have also added the

    what have i made false???

  5. curb says:

    How do I use pagination? I have a lot of pictures in one folder but it’ll take 56k users a long time to load the page.

  6. Korey says:

    Curb- Sorry, I haven’t put in any pagination features yet. Obviously, you could use separate folders, or another plugin for that matter. Pagination is on my to-do list though.

  7. Gelan says:

    Hi there! Love the plugin especially for the cached thumbnails. I need to know if there’s a way to create a “page” for the gallery without using the wordpress “page” feature, if you know what I mean. do you know of a way that I could have it so I can link to something a la Lazy Gallery. I will have lots of other WordPress Pages and I don’t want my Gallery to get lost in the mix.

  8. Billy says:

    Hi, I just activated the comments function of your plugin. Seems to work but one glitch for me that I need help with. I submit a comment to my gallery but it gives me a 404 error message first. Once I hit my browser back button the comment is posted ok. How do I get rid of the error message? Help Please! LOL

  9. AC says:

    Since the following Lightbox plugin is still a known issue that hasn’t been fixed:

    Lightbox 2 Plugin from

    Is there a way to remove that feature so that I can still use the above lightbox plugin on my site for other pictures?

  10. […] The big thing I added is support for the Thickbox image viewer and a number of new ways to use Lightbox. See the FAQ page to see where to download these add-ons from. After you download and set up the one you want, visit the Lazy-K Gallery options page. You’ll notice that there are two new combo boxes in the Advanced Options section. There are a lot of options, so give them a try to see what you like. Of course, you can always just leave them alone and not use an external image-viewer. Here are the navigation options: […]

Comments on this page are no longer allowed. If you have a question or comment please see the support forums.