Title: 1.5 Loop example
Last modified: August 18, 2016

---

# 1.5 Loop example

 *  [essdsm](https://wordpress.org/support/users/essdsm/)
 * (@essdsm)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/15-loop-example/)
 * I’ve looked at the 1.5 loop example in the codex and find it singularly unhelpful.
   I would be really grateful if someone could provide an example of extracting 
   data from the 1.5 loop … the old way still works but I’m trying to get with the
   programme:). I’ve tried the following without success.
 * if (have_posts()): while (have_posts()):the_post();
    echo $post->post_content;
   endwhile; endif;

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/15-loop-example/#post-139537)
 * I’m not sure of the problem, because that does work for me:
 * `if (have_posts()) : while (have_posts()) : the_post(); 
    echo $post->post_content;
   endwhile; endif;
 *  Thread Starter [essdsm](https://wordpress.org/support/users/essdsm/)
 * (@essdsm)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/15-loop-example/#post-139548)
 * Thanks for having a look Kafkaesqui. What I needed to add, but didn’t think was
   relevant, was that I’m doing this via the Smarty template engine of WPMU. But
   it may be, which kind of leaves me stumped.

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

The topic ‘1.5 Loop example’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [essdsm](https://wordpress.org/support/users/essdsm/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/15-loop-example/#post-139548)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
