Title: Loop within a loop
Last modified: August 19, 2016

---

# Loop within a loop

 *  [benji87](https://wordpress.org/support/users/benji87/)
 * (@benji87)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/loop-within-a-loop-1/)
 * Hi all,
 * Ok, I am currently trying to setup an ecommerce store with the wp-ecommerce plugin
   and since I didn’t get a decent response there I have come here to find a solution.
 * Recently wp-ecommerce changed the way you fetch posts from using their own function
   to now using wp’s get_posts() which has totally ruined my custom products loop.
 * Basically what I’m trying to do is display a list of products inside certain 
   wordpress pages. It used to work fine but since wp-ecommerce changed my page 
   just goes into an infinite loop!
 * Here is my code in a simplified format:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * I really can’t see why this wouldn’t work so any advice would be much appreciated!
 * Thanks,

Viewing 1 replies (of 1 total)

 *  Thread Starter [benji87](https://wordpress.org/support/users/benji87/)
 * (@benji87)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/loop-within-a-loop-1/#post-1991968)
 * Here is my pastebin link: [http://pastebin.com/6tGmzKeJ](http://pastebin.com/6tGmzKeJ)

Viewing 1 replies (of 1 total)

The topic ‘Loop within a loop’ is closed to new replies.

## Tags

 * [pr](https://wordpress.org/support/topic-tag/pr/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [benji87](https://wordpress.org/support/users/benji87/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/loop-within-a-loop-1/#post-1991968)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
