The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Sidebar Does Weird Things on Page 2

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #28323


    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

    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!


    have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID;?>

    ” rel=”bookmark” title=”Permanent Link to “>

    ID, ‘video’, true);?>

    ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

    ” rel=”bookmark” title=”Permanent Link to “>

    ID, ‘image’, true);?>

    ‘); ?> Posted in |

    Not Found

    Sorry, but you are looking for something that isn’t here.


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.

// loop 1

// loop 2


hey man!

thanks for that dude! it’s sorted now, i was being lame with div tags again! thanks for your help mate :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.