My website looks fine on the front page, but when you go to the second page, the sidebar decides to fly out to the right! it looks like it's outside of the page wrap for some reason, although as far as i am aware it should be fine as it's all in the index.php!
what i am guessing, is that it has something to do with the if statement i am running... it checks to see if it's the first page. if it is, then it shows a featured post and displays it. then runs the normal loop. but something seems to go wrong on page 2 etc...
this is my site http://allthebestvids.com/
and the code for the index.php is below.
If you could help me with this then i will think that you are a pretty swell guy!
<?php get_header(); ?>
<div id=\"main\">
<?php if ( !is_paged() ) : // check if this not a paged page of posts, then show featured post ?>
<div class=\"loop\"> <?php $my_query = new WP_Query('category_name=featured&posts_per_page=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?>
<h2><a href=\"<?php the_permalink() ?>\" rel=\"bookmark\" title=\"Permanent Link to <?php the_title_attribute(); ?>\"> <?php the_title(); ?></a></h2> <?php the_content('Read The Article / Have your say!'); ?>
It could be that your enclosing <div class="loop"> is only in the first loop and not the second. You might consider moving this outside of any loops so that all your posts are enclosed within it.
My website looks fine on the front page, but when you go to the second page, the sidebar decides to fly out to the right! it looks like it's outside of the page wrap for some reason, although as far as i am aware it should be fine as it's all in the index.php!
what i am guessing, is that it has something to do with the if statement i am running... it checks to see if it's the first page. if it is, then it shows a featured post and displays it. then runs the normal loop. but something seems to go wrong on page 2 etc...
this is my site http://allthebestvids.com/
and the code for the index.php is below.
If you could help me with this then i will think that you are a pretty swell guy!
thanks for that dude! it's sorted now, i was being lame with div tags again! thanks for your help mate :)