Title: Duplicate articles in navigation
Last modified: August 19, 2016

---

# Duplicate articles in navigation

 *  [MoreNiche](https://wordpress.org/support/users/moreniche/)
 * (@moreniche)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/duplicate-articles-in-navigation/)
 * Hi Guys,
 * I do hope you are well, I have a problem I am hoping someone can resolve:
 * I have a blog I am working on which shows the articles from that category in 
   the right navigation e.g.
 * [http://www.home-weightloss.com/category/weight-loss/tips/](http://www.home-weightloss.com/category/weight-loss/tips/)
 * However for some reason the code is showing them all twice, strangly it works
   here: [http://www.home-weightloss.com/category/reviews/products/](http://www.home-weightloss.com/category/reviews/products/)
   but all the other categories are duplicated.
 * The code I am using is:
 *     ```
       <?php global $post;
       $categories = get_the_category();
       foreach ($categories as $category) :
       ?>
       <ul>
       <?php
       $posts = get_posts('numberposts=20&amp;category='. $category->term_id);
       foreach($posts as $post) :
       ?>
       <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
       <?php endforeach; ?>
       <?php endforeach; ?>
       </ul>
       ```
   
 * Thanks for your time.
 * Andy

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

 *  [taruntanu](https://wordpress.org/support/users/taruntanu/)
 * (@taruntanu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/duplicate-articles-in-navigation/#post-1061280)
 * Hey saw your site nice design cloud you tell me how did you add marquee at the
   bottom of the page
 * Regards
    Tarun [http://www.telecomtalk.info](http://www.telecomtalk.info)
 *  Thread Starter [MoreNiche](https://wordpress.org/support/users/moreniche/)
 * (@moreniche)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/duplicate-articles-in-navigation/#post-1061569)
 * Hi Tarun, by Marquee do you mean the ticker?

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

The topic ‘Duplicate articles in navigation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [MoreNiche](https://wordpress.org/support/users/moreniche/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/duplicate-articles-in-navigation/#post-1061569)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
