Aiyaa headache!!

Spent 2 nights trying to install Flickr Gallery plugin in my WordPress site and yet I still face with problems. Finally I got it done and now … I can’t sleep!!!

Been thinking of a lot of things lately. New website to build. Old website to rebuild. Which to do first?

I’m now having a bad headache and I can’t sleep. Worst is, I’ve got an appointment later in town. Can’t sleep…headache…arrrrrrrrrghhhhhhhhh!

I think I’ll go watch Sex in the city.

Flickr Gallery in WordPress 1.5

Flickr Gallery plugin for WordPress 1.5 is yet the best photo gallery plugins so far. If you already have an account with Flickr, you can just simply integrate it into WordPress. Flickr is an online photo management and sharing application. If you don’t have an account yet, go register an account now.

If you already have an account and wish to integrate it into WordPress, here’s
an alternate way which works for me.

  1. Download Flickr gallery plugin from and extract the compressed files.
  2. Read the README file. Then edit the flickr-gallery.php file and replace the settings for your own server.
  3. Once done, upload flickr-gallery.php to your wp-content/plugins/ directory and activate the plugin via your WP admin console.
  4. Copy your index.php file (NOTE: copy the index.php file which is from this /wp-content/themes/default/ directory and not the one in the root) and then rename it gallery.php.
    (NOTE: The index.php you copied is from your current theme which is active.)
  5. Now edit gallery.php and replace everything between

    <div id="content"> … </div>


    < ?php flickr_show_photos($_GET[‘album’], $_GET[‘photo’], $_GET[‘page’]); ?>

    This section may vary depending of the theme you are using. So you really need to look carefully through the codings. If you’re using the default theme, the gallery.php file will look like this :

    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php flickr_show_photos($_GET[‘album’], $_GET[‘photo’]); ?>

    < /div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    If you using some other theme, this is an example of my gallery.php. You DO NOT have to follow mine.

    <?php get_header(); ?>

    <?php get_sidebar(); ?>

    <div id="content">

    <?php rounded_div("top", "", "");?>
    < ?php rounded_div(); ?>

    <?php flickr_show_photos($_GET[‘album’], $_GET[‘photo’], $_GET[‘page’]);

    <?php rounded_div("bottom", "", ""); ?>

    <?php get_footer(); ?>


  6. Upload the gallery.php file back into your /wp-content/themes/default/ directory.
  7. Next, you need to create a second gallery.php file. Copy index.php from your root directory (where you install your WordPress), and rename it to gallery.php. Edit this second gallery.php. The content of this file should be :


    $_SERVER[‘PATH_INFO’] = ”;


    include(TEMPLATEPATH . "/gallery.php");


  8. Upload the second gallery.php file to your root directory. Follow the rest of the included README to set up the Cascading Style Sheets(CSS) and make your gallery look good.
  9. Make sure that you edit your flickr-gallery.php correctly, else you’re bound to face with problems. Good luck trying!

For more guideline, try and Ryan.

Related Posts with Thumbnails