jonathanduane2010
asked on
Code not working (or where i want it to be)
Hi guys,
I am trying to have http://www.piratescove.ie/test1/ looking similar to http://piratescove.ie (as i want to use http://www.piratescove.ie/test1/ as the home page soon)
its a wordpress site so i created a new page template
and tried to get it looking similar, unfortunately it looks like something (maybe a whole lot is not working properly and i was wondering could help me to put the places out of position back into position?
Thank you
I am trying to have http://www.piratescove.ie/test1/ looking similar to http://piratescove.ie (as i want to use http://www.piratescove.ie/test1/ as the home page soon)
its a wordpress site so i created a new page template
<?php
/*
Template Name: My Custom Indexer Page
*/
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php //comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<div class="photos_videos">
<h2>PHOTOS & VIDEOS</h2>
<div id="banner-fade">
<!-- start Basic Jquery Slider -->
<ul class="bjqs">
<?php query_posts("cat=4");
while (have_posts()) : the_post(); ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<li><a href="<?php the_permalink(); ?>"><img src="<?php echo $image[0]; ?>" title="<?php the_title(); ?>"></a> </li>
<?php endwhile;
wp_reset_query(); ?>
</ul>
<!-- end Basic jQuery Slider -->
</div>
</div> <!-- #photos_videos -->
<div class="widget widget_foo_widget new1" id="foo_widget-2" >
<h3>Latest News</h3>
<?php query_posts("cat=3&showposts=3");
while (have_posts()) : the_post();
echo '<h2><a href="'.get_permalink().'">'.get_the_title().'</a><span>'.get_the_date('d-M-Y').'</span></h2>';
echo '<p>'.substr(get_the_excerpt(),0,100).'...</p>';
endwhile;
wp_reset_query(); ?>
</div>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<div class="box_row4">
<!--<a href="#"><img src="<?php //bloginfo('template_url') ?>/images/oxygen_map.png"></a>
<a href="#"><img src="<?php //bloginfo('template_url') ?>/images/wexford_img.png"></a>
<a href="#"><img src="<?php //bloginfo('template_url') ?>/images/booking_forms.png" style="margin-right:0px;"></a>-->
<a href="http://www.piratescove.ie/competitions-2/"><div class="red1">Competitions</div></a>
<a href="http://www.courtownharbour.com" title="Courtown Harbour Website"><div class="green1">Courtown Harbour</div></a>
<a href="http://www.piratescove.ie/hire-us/"><div class="blue1" style="margin-right:0px;">Hire Us</div></a>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
and tried to get it looking similar, unfortunately it looks like something (maybe a whole lot is not working properly and i was wondering could help me to put the places out of position back into position?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Looks like you fixed it (and also moved the footer stuff into the "page" container as well).
ASKER
Am i blind?