Since last year, I have been searching high and low on how can I actually insert an in-frame gallery in to one of the tabs in my Wordpress. Finally I found out the right and easy way to do it
Previously, I used to put the gallery outside of the blog. Now after integrating it, I managed to put it inside the “pages” tab (please note the Gallery tab on top) which I find more meaningful than being kept outside of the blog. Wanna have the same gallery?

Here’s a simple way on how you can put your gallery in your blog.
- Before doing some coding, you will need to install Gallery in your server. You can get the Gallery installation here.
- Once you’ve installed it, you will need to go to your Wordpress themes folder. You can find the “themes” folder under wp-content via your cpanel.
- Now, go to your existing theme folder (the theme that you are currently using) and create a “new file” called “gallery.php”
- You will need to insert the code below in the new file aka gallery.php
- Or you can get the php file here. If you downloaded this, extract the file to your existing theme folder.
- Now, go to your “pages” tab under Manage in the wordpress side admin and create the gallery tab.
- Here’s the trick, locate the Page Template tab (which is located on your right hand side) and select the “gallery template”
- Finally, Click Save and you are done!
<?php /*
Template Name: Gallery
*/ ?><?php get_header(); ?>
<div class=”content”>
<p>
<iframe class=”galleryframe” src=”http://www.yoursite.com/your gallery location/main.php”
width=”100%” height=”1200″ frameborder=”0″ scrolling=”no”>
</iframe>
</p>
</div><!– Close content –><?php get_footer(); ?>
I hope this will help your quest too
Recommended Reading:
















January 4th, 2008 at 2:36 pm
wahh berguna ni since i have tons of pictures mau share selalu…thanks ter.
[Reply]
January 4th, 2008 at 4:42 pm
Hopefully this can help some of you out there
[Reply]
January 4th, 2008 at 5:36 pm
fuaaa..this is good..it would be helpful later if I want to post pictures in my blog..
[Reply]
January 4th, 2008 at 7:08 pm
Jijoy, try inserting it in your blog man
[Reply]