Loop within a loop (2 posts)

  1. benji87
    Posted 4 years ago #

    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. Please use the pastebin]

    I really can't see why this wouldn't work so any advice would be much appreciated!


  2. benji87
    Posted 4 years ago #

    Here is my pastebin link: http://pastebin.com/6tGmzKeJ

Topic Closed

This topic has been closed to new replies.

About this Topic