HTML Code:
<div id="myslides">
HTML Code:
<a href="http://74.115.229.75/kids-camp/">Here's the page</a>
PHP Code:
<?php wp_enqueue_script("jquery"); ?>
PHP Code:
<?php wp_head(); ?>
Code:
<?php /* Template Name: Custom Interior Page */ list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options(); get_header(); extract($bfa_ata); global $bfa_ata_postcount; ?> <script type="text/javascript"> var $j = jQuery.noConflict(); $j($(document).ready(function(){ $j($('#myslides').cycle({ fit: 1, pause: 1, timeout: 4000 })); })); </script> <style> #myslides { height:400px; width:600px; } </style> <div id="interior_wrapper"> <?php global $post; $post_slug=$post->post_name; $img_directory = '../../images/'.$post_slug; // echo $directory; // Styling for images echo '<div id="myslides">'; foreach ( new DirectoryIterator($img_directory) as $item ) { if ($item->isFile()) { $path = $img_directory . '/' . $item; echo '<img src="' . $path . '"/>'; } } echo '</div>'; ?> </div> <script src="../../scripts/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="../../scripts/jquery.cycle.lite.js" type="text/javascript"></script> <?php get_footer(); ?>