Title: The Loop
Last modified: August 22, 2016

---

# The Loop

 *  Resolved [Pedro Magnifico](https://wordpress.org/support/users/pedro-magnifico/)
 * (@pedro-magnifico)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/)
 * Where do I find the loop?
 * According to the [WordPress codex](http://codex.wordpress.org/The_Loop),
 * > The loop starts here:
   > <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   > and ends here:
   > <?php endwhile; else : ?>
   >  <p><?php _e( ‘Sorry, no posts matched your criteria.’);?
   > ></p> <?php endif; ?>
 * The closest I have found in the Hueman theme is in page.php
 * >  <?php while ( have_posts() ): the_post(); ?>
 * But it does not have anything resembling the closing code.
 * The reason I ask is because I want to add capability for “read more” links in
   blog entries as suggested in the final post [here](http://wordpress.org/support/topic/add-read-more-to-bottom-of-post-preview?replies=3).

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

 *  [Mike Orange](https://wordpress.org/support/users/mike-orange/)
 * (@mike-orange)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261540)
 * I posted it here [http://wordpress.org/support/topic/blog-post-excerpts?replies=3](http://wordpress.org/support/topic/blog-post-excerpts?replies=3)
   
   If that’s’ all PLS mark [resolved]. Mike
 *  Thread Starter [Pedro Magnifico](https://wordpress.org/support/users/pedro-magnifico/)
 * (@pedro-magnifico)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261580)
 * Thanks, Mike, but that’s not really the solution I was looking for. I want to
   be able to add a “read more” link to some posts, not universally. And I would
   prefer the read more link jump to the spot in the post, not to the top of the
   post.
 *  [Mike Orange](https://wordpress.org/support/users/mike-orange/)
 * (@mike-orange)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261586)
 * Must be something from [http://codex.wordpress.org/Customizing_the_Read_More](http://codex.wordpress.org/Customizing_the_Read_More)–
   which one?
 *  Thread Starter [Pedro Magnifico](https://wordpress.org/support/users/pedro-magnifico/)
 * (@pedro-magnifico)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261618)
 * No I think you missed the link I referred to, the poster gave these instructions:
 * > 1, Write to the loop:
   > <?php the_content(‘Read more…’); ?>
   > 2, Write the quicktag <!–more–> while in editing workflow. (In text editor.)
 * But I don’t know where to find the loop, see my 1st post.
 *  [Mike Orange](https://wordpress.org/support/users/mike-orange/)
 * (@mike-orange)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261625)
 * Standard loop (looks bit different than in Codex) for Hueman main blog page starts
   in index.php
    But if you look at line 15
 *     ```
       <?php get_template_part('content'); ?>
       ```
   
 * it leads to content.php
    Only place where you can try inserting that PhP code
   is there, but I am not sure that code that a poster placed is correct. You should
   use part with <div “class=”entry excerpt” > near the bottom, but mentioned code
   will not produce effects you want. Specially, don’t understand “I want to be 
   able to add a “read more” link to some posts, not universally.”. You can achieve
   this maybe with post ID or some kind of variable inside the post. If you are 
   pretty familiar with PhP, you can try inserting new class of your own (I’m really
   still not sure that I understand complete idea, you know the best what you want).
   So, only thing I’m sure that you should start from content.php (for standard 
   main blog page with featured slider). I leave the rest of experiments to you (
   hope this helped a bit) and post the solution if you succeed 🙂 Good luck, Mike
 *  Thread Starter [Pedro Magnifico](https://wordpress.org/support/users/pedro-magnifico/)
 * (@pedro-magnifico)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261780)
 * I did it the way you outlined in your link above.Thanks!
 *  [Mike Orange](https://wordpress.org/support/users/mike-orange/)
 * (@mike-orange)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261781)
 * You’re welcome, if that’s all, please mark [resolved]

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 7 replies
 * 2 participants
 * Last reply from: [Mike Orange](https://wordpress.org/support/users/mike-orange/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/the-loop-10/#post-5261781)
 * Status: resolved