Title: WP 1.5 loop
Last modified: August 18, 2016

---

# WP 1.5 loop

 *  [andyhume](https://wordpress.org/support/users/andyhume/)
 * (@andyhume)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/wp-15-loop/)
 * In Wp 2 I used to put this:
 * <?php
    $posts = get_posts(‘numberposts=4’); foreach ($posts as $post) : ?>
 * to call only 4 posts in the loop.
 * What can I do to the loop in Wp1.5:
 * <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 * to achieve the same effect. The old way works, but the <?php content() ?> gives
   a MySQL error so I can’t use it.

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/wp-15-loop/#post-131674)
 * I’m not entirely sure, but here’s info on The Loop for v1.5:
 * [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)
 *  Thread Starter [andyhume](https://wordpress.org/support/users/andyhume/)
 * (@andyhume)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/wp-15-loop/#post-131676)
 * Yeah, found that page in my search. Doesn’t help much though.
 * There must be a simple way of sending that info into the loop and all the other
   loop data like categories, or months, etc…

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

The topic ‘WP 1.5 loop’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [andyhume](https://wordpress.org/support/users/andyhume/)
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/wp-15-loop/#post-131676)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
