Title: bacon's Replies | WordPress.org

---

# bacon

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying the 5 latest posts by:](https://wordpress.org/support/topic/displaying-the-5-latest-posts-by/)
 *  [bacon](https://wordpress.org/support/users/bacon/)
 * (@bacon)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/displaying-the-5-latest-posts-by/#post-215919)
 * I’m having this problem too, I want the homepage to display specifics, eg the
   last 5 posts in category1, and the last 6 posts from category2. [code]<?php the_content('
   Read the rest of this entry...Â»'); ?>[/code] works, but it displays the entire
   post, disregarding where <!–more–> should kick in.
 * I had an idea for index.php – [code] if (URLrequestedVariable(?) == $_SERVER['
   DOCUMENT_ROOT']) { special index by category case } else { standard if (have_posts()):
   loop. [/code]
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I use `the_content` and The Loop tags on sub pages?](https://wordpress.org/support/topic/how-do-i-use-the_content-and-the-loop-tags-on-sub-pages/)
 *  [bacon](https://wordpress.org/support/users/bacon/)
 * (@bacon)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-use-the_content-and-the-loop-tags-on-sub-pages/#post-207035)
 * *bump*
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I use `the_content` and The Loop tags on sub pages?](https://wordpress.org/support/topic/how-do-i-use-the_content-and-the-loop-tags-on-sub-pages/)
 *  [bacon](https://wordpress.org/support/users/bacon/)
 * (@bacon)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-use-the_content-and-the-loop-tags-on-sub-pages/#post-207004)
 * I don’t mean to hijack this thread, but since it’s resolved and my problem is
   very similar so I thought I’d just throw my question in here. I’m using the same
   code above to selectively insert a # of posts from a certain category. I created
   a page which I want to function as the index, where I can selectively post the“
   best of” stuff, and then also have a most recent entries. The problem is, entries
   display in full, where I want them to have a “Read the rest of this entry.” I’ve
   looked the_loop and the_content codex stuff with no luck, I can’t get the page
   to realize it’s a multipost page (I think thats what the problem is). Check out
   [http://www.burningvillage.com/home](http://www.burningvillage.com/home) for 
   the broken page and [http://www.burningvillage.com](http://www.burningvillage.com)
   for the index that properly cuts posts at <!–more–>.
 * Here’s some details:
    page.php code : `<?php if ($_GET[â€™pagenameâ€™] = â€˜homeâ
   €™) { ?> <h2>[Our Hottest Content](https://wordpress.org/category/hot/?output_format=md)(
   a good place to start)</h2> <?php $hot_query = new WP_Query('cat=8&showposts=
   4'); ?> <?php while ($hot_query->have_posts()) : $hot_query->the_post(); ?> <
   div class="homepost"> <h2 id="post-<?php the_ID(); ?>">" rel="bookmark" title
   ="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2> <div class
   ="entrytext"> **<?php the_content('Read the rest of this entry »'); ?>** </div
   > </div> <?php endwhile;?> <?php } else { ?>… Thanks for your help!

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