Title: Could this loop be a problem?
Last modified: August 19, 2016

---

# Could this loop be a problem?

 *  [devotee](https://wordpress.org/support/users/devotee/)
 * (@devotee)
 * [15 years ago](https://wordpress.org/support/topic/could-this-loop-be-a-problem/)
 * Hey. I have a site which uses ajax to load newsposts into a div on the fly. I
   have a loop which works for me, but since I read alot about errors using multiple
   loops and nested loops and such I am worried it might break somehow, so if anyone
   could take a look and see if I can make it better it would be nice of you.
 * _[code moderated according to [Forum Rules ](http://codex.wordpress.org/Forum_Welcome)-
   please use the [pastebin](http://pastebin.com/)]_
 * I am using a loop inside the #ajax-content div so that it already starts out 
   with a newspost, then you can click thumbnails and some other news gets loaded
   into the div.
 * Is this alright?

Viewing 1 replies (of 1 total)

 *  Thread Starter [devotee](https://wordpress.org/support/users/devotee/)
 * (@devotee)
 * [15 years ago](https://wordpress.org/support/topic/could-this-loop-be-a-problem/#post-2056475)
 * [http://pastebin.com/kPgsbYiN](http://pastebin.com/kPgsbYiN)
 * Here is the code.

Viewing 1 replies (of 1 total)

The topic ‘Could this loop be a problem?’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [devotee](https://wordpress.org/support/users/devotee/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/could-this-loop-be-a-problem/#post-2056475)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
