Paginated post shows up in sidebar?! (3 posts)

  1. danielroach
    Posted 7 years ago #

    I decided to start paginating my longer posts, but my sidebar has this:

    `<?php $my_query = new WP_Query('category_name=videos&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>

    <?php the_content('Continue...'); ?>

    <?php endwhile; ?>`

    to display the latest video post at the top of the sidebar. The problem is that when you go to Page 2 of the post, the entire post being read gets crammed into the top of the sidebar instead of the video due to the $do_not_duplicate in the code above.

    How can I make the video post appear on all pages or a better question: How can I stop the text from appearing in the sidebar?
    Any help would be greatly appreciated.

  2. danielroach
    Posted 7 years ago #

    Are there any conditional tags I could use? I've tried just about everything I can think of and am getting nowhere fast.

  3. joaovalado
    Posted 7 years ago #


    I'm having the same problem.
    Did you ever found the solution?

Topic Closed

This topic has been closed to new replies.

About this Topic