Title: wp-tej's Replies | WordPress.org

---

# wp-tej

  [  ](https://wordpress.org/support/users/wp-tej/)

 *   [Profile](https://wordpress.org/support/users/wp-tej/)
 *   [Topics Started](https://wordpress.org/support/users/wp-tej/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wp-tej/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wp-tej/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wp-tej/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wp-tej/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wp-tej/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Different CSS styles for multiple categories single post page](https://wordpress.org/support/topic/style-the_category/)
 *  Thread Starter [wp-tej](https://wordpress.org/support/users/wp-tej/)
 * (@wp-tej)
 * [14 years ago](https://wordpress.org/support/topic/style-the_category/#post-2742057)
 * Hi Paul, thanks for your help.
 * I’ve found a solution.
 * [http://wpquestions.com/question/show/id/2303](http://wpquestions.com/question/show/id/2303)
 * Thanks
 * Tej
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Multiple Content Block: Not showing in admin](https://wordpress.org/support/topic/multiple-content-block-not-showing-in-admin/)
 *  Thread Starter [wp-tej](https://wordpress.org/support/users/wp-tej/)
 * (@wp-tej)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/multiple-content-block-not-showing-in-admin/#post-2559295)
 * I’ve noticed the problem occurs, when I use a custom single.php file.
 * Has anyone come across this?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Add blog posts to a single blog page (Visual included)](https://wordpress.org/support/topic/add-blog-posts-to-a-single-blog-page-visual-included/)
 *  Thread Starter [wp-tej](https://wordpress.org/support/users/wp-tej/)
 * (@wp-tej)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/add-blog-posts-to-a-single-blog-page-visual-included/#post-2512608)
 * Sure enough, I come across another problem.
 * The blog posts included in the single post page, also includes a post to the 
   current page.
 * I’m trying to stop this duplication using the following code below:
 *     ```
       <div id="mcontent">
       <?php query_posts(); 
   
        if (have_posts()) : while (have_posts()) : the_post();
         if( $post->ID == $do_not_duplicate ) continue;?>
   
       <div class="item shadow"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
       <?php the_post_thumbnail('large'); ?></a>
       <div class="postsnip"><?php echo the_excerpt(); ?></div></div>
   
        <?php endwhile;  endif;
        // Reset Query
       wp_reset_query();
         ?>
       ```
   
 * Can’t seem to crack it.
 * Any pointers?
 * Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Add blog posts to a single blog page (Visual included)](https://wordpress.org/support/topic/add-blog-posts-to-a-single-blog-page-visual-included/)
 *  Thread Starter [wp-tej](https://wordpress.org/support/users/wp-tej/)
 * (@wp-tej)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/add-blog-posts-to-a-single-blog-page-visual-included/#post-2512544)
 * Thanks used query_posts and work a treat!

Viewing 4 replies - 1 through 4 (of 4 total)