Table of Contents

Sandbox Setup

Updated for:

falbum.php

In the /wp-content/themes/sandbox directory. Create a new file named falbum.php and copy the below code into it.

falbum.php

<?php /* 
Template Name: FAlbum Page template 
*/ 
//Hack to set WP page id
$page_id = null; //Change this to match your sites WP page id of new Photos page
 
global $wp_query;
global $post;
if ($page_id != null) {
  $post->ID = $page_id;
  $wp_query->is_home = false;
  $wp_query->is_page = true;
  $wp_query->queried_object->ID = $page_id;
  $wp_query->queried_object_id = $page_id;
}
 
?>
 
<?php get_header(); ?>
 
<?php /* Remove or comment out the below line after to finding the Photos page page_id */
if ($page_id == null) { echo '<h2>page_id = '.$post->ID.'</h2>'; } 
?>
 
<script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/falbum/res/falbum.js"></script>
<script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/falbum/res/overlib.js"></script>
 
<?php if ($falbum->can_edit == true) { ?>
  <script type="text/javascript" src="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/falbum/res/prototype.js"></script>
<?php } ?>
 
<div id="container">
	<div id="content">
		<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
 			<h2 class="entry-title"><a href="<?php the_permalink('14') ?>" rel="bookmark" title="Permanent Link: Photo Gallery">Photo Gallery</a></h2>
 			<div class="entry-content">
				<?php $falbum->show_photos(); ?>
 			</div>
 		</div>
	</div><!-- END CONTENT -->
</div><!-- END CONTAINER -->
 
<?php get_sidebar() ?>
<?php get_footer(); ?>
?>

WordPress page setup

Example

Old:

$page_id = null; //Change this to match your sites WP page id of new Photos page

New:

$page_id = 2; //Change this to match your sites WP page id of new Photos page