Title: modularmule's Replies | WordPress.org

---

# modularmule

  [  ](https://wordpress.org/support/users/modularmule/)

 *   [Profile](https://wordpress.org/support/users/modularmule/)
 *   [Topics Started](https://wordpress.org/support/users/modularmule/topics/)
 *   [Replies Created](https://wordpress.org/support/users/modularmule/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/modularmule/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/modularmule/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/modularmule/engagements/)
 *   [Favorites](https://wordpress.org/support/users/modularmule/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [help with Mini-Loop formatting](https://wordpress.org/support/topic/help-with-mini-loop-formatting/)
 *  Thread Starter [modularmule](https://wordpress.org/support/users/modularmule/)
 * (@modularmule)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/help-with-mini-loop-formatting/#post-1039801)
 * thanks, esmi.
    got it.
 * now, the problem is my loop is only displaying one post. and it’s not even the
   most recent post. what’s going on?
 *     ```
       <?php
           // turn off WordPress themes and include the WordPress core:
           define('WP_USE_THEMES', false);
           require($_SERVER['DOCUMENT_ROOT'] . '/blog/wp-blog-header.php');
       ?>
       		<?php
           $lastposts = get_posts('numberposts=0&category=1&orderby=date&order=DESC');
       	$content = get_the_content();
       	foreach($lastposts as $post)
           setup_postdata($post); 
   
       ?>
       ```
   
 * what follows from there is all the markup for the_date, the title, ID, etc…
 * I only need one instance of the div class for the “post” (including content, 
   storytitle, etc), right?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [help with Mini-Loop formatting](https://wordpress.org/support/topic/help-with-mini-loop-formatting/)
 *  Thread Starter [modularmule](https://wordpress.org/support/users/modularmule/)
 * (@modularmule)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/help-with-mini-loop-formatting/#post-1039659)
 * anyone?

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