Title: Help with index.php loop?
Last modified: August 19, 2016

---

# Help with index.php loop?

 *  [bakingandbooks](https://wordpress.org/support/users/bakingandbooks/)
 * (@bakingandbooks)
 * [16 years ago](https://wordpress.org/support/topic/help-with-indexphp-loop/)
 * I am using a WP theme that does not allow you to use the excerpt function for
   your RSS feed – if you have an excerpt it is automatically displayed on your 
   blog instead of the post content. I’d like to change this but don’t know how!
 * Here is the line that I think needs to be changed:
 * <?php if(has_excerpt()) { the_excerpt(); }else{ the_content(custom_readmore());}?
   >
 * Do you know how to change this so that I can use the excerpt for my RSS & email
   subscriptions without the excerpt appearing on the front page? The theme also
   uses WP thumbnails so currently none of my intro images are showing up in my 
   feeds. 🙁
 * Thank you for your time!

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

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years ago](https://wordpress.org/support/topic/help-with-indexphp-loop/#post-1507515)
 * I think this will work for the excerpt:
 *     ```
       <?php if ( is_home() || is_front_page() ) {
          the_content(custom_readmore());
       } elseif(has_excerpt()) {
          the_excerpt();
       }else{
          the_content(custom_readmore());
       } ?>
       ```
   
 * Don’t know about the thumbnail problem.
 *  Thread Starter [bakingandbooks](https://wordpress.org/support/users/bakingandbooks/)
 * (@bakingandbooks)
 * [16 years ago](https://wordpress.org/support/topic/help-with-indexphp-loop/#post-1507518)
 * Thanks for your reply! I ended up using the snippet below and that fixed everything:
 *     ```
       <?php the_content(custom_readmore()); ?>
       ```
   
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years ago](https://wordpress.org/support/topic/help-with-indexphp-loop/#post-1507529)
 * Glad you got it fixed. Now, please use the dropdown at top right to mark this
   topic ‘Resolved’.

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

The topic ‘Help with index.php loop?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/help-with-indexphp-loop/#post-1507529)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
