Title: Limiting Text
Last modified: August 18, 2016

---

# Limiting Text

 *  [omikeo](https://wordpress.org/support/users/omikeo/)
 * (@omikeo)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/)
 * Hi, Can you limit the text on the home page so that it only displays say 200 
   words then just adds a ‘Read More’ button to the end so if its a long post it
   doesn’t take up the whole homepage?
 * Thanks for any advice. Mike

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256020)
 * See my plugin:
    [http://guff.szub.net/the-excerpt-reloaded/](http://guff.szub.net/the-excerpt-reloaded/)
 *  [pbrainz](https://wordpress.org/support/users/pbrainz/)
 * (@pbrainz)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256036)
 * I’m currently using evermore… and the weird thing is that it excerpts properly
   on the homepage and every type of page except for pages you make in wordpress.
   all of my articles on my sidebar display full… making the window HUGE. Ideas?
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256038)
 * Check your side bar…. make *sure* you are using the_excerpt() and not the_content().
 * Or try the_excerpt Reloaded at the link above.
 * -tg
 *  Thread Starter [omikeo](https://wordpress.org/support/users/omikeo/)
 * (@omikeo)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256109)
 * Ok Kafkaesqui,
 * Its working a bit but as so new to this that I’m sure its my fault its not working
   fully.
 * Ive added this script just inside ‘The Loop’:
 * 
 * I want it to display the title, picture, text, the post footer (with the No. 
   of comments, etc) and any returns in the text.
 * At the moment is doesn’t display any title, the footer, or the returns it ALSO
   posts the topic twice, once using the function (with the limited text) and again
   as the original full text.
 * Where am I going wrong?
 * Thank Mike.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256115)
 * Elements like post title and any “post footer” data would be handled by other
   template tags (i.e. [the_title()](http://codex.wordpress.org/Template_Tags/the_title)
   for title, [comments_link()](http://codex.wordpress.org/Template_Tags/comments_link)
   for link and # of comments, etc.). You’ll find a list of template tags here:
 * [http://codex.wordpress.org/Template_Tags](http://codex.wordpress.org/Template_Tags)
 * If you’re not sure how to go about setting these up, I’d recommend looking over
   the index.php in the default theme to get a good idea of how to use these tags
   together, as well as intermixed with HTML tags and such. Of course, the forums
   are filled with folks who can help when you’re stuck.
 * In regards to content displaying twice, it sounds as if you left [the_content()](http://codex.wordpress.org/Template_Tags/the_content)
   in place instead of replacing it with the_excerpt_reloaded(). If your theme comes
   with a single.php, it’ll display the full text on single post pages. If not, 
   use the following code to display full content on single posts, and excerpts 
   everywhere else:
 * `<?php 
    if(is_single()) : the_content(); else : the_excerpt_reloaded(100, '<
   img>', 'none', TRUE, 'Read More...', TRUE, 2);  endif; ?>
 * Note I removed the h2 tag from the allowedtags list; if you use that in your 
   post content then retain it, but it’s not necessary for displaying the title 
   normally (as noted, it’s handled by another tag).
 * If you need the returns as you’ve have them in your post, change the filter_type
   from ‘none’ to ‘content’. This will format your text as you see it in a regular
   post (with line breaks and paragraphs).
 *  Thread Starter [omikeo](https://wordpress.org/support/users/omikeo/)
 * (@omikeo)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256116)
 * Thanks Kafkaesqui, working PERFECT now 🙂
 *  Thread Starter [omikeo](https://wordpress.org/support/users/omikeo/)
 * (@omikeo)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256198)
 * Hi,
 * another quick Q – How do I do the same for the search results and the archived
   posts?
 * I think its something to do with this line:
    <?php echo BX_remove_p($post->post_content);?
   >
 * But when i replace the ‘post_content’ with this line it does nothing:
    the_excerpt_reloaded(
   100, ‘<img>’, ‘content’, TRUE, ‘Read More…’, TRUE, 2)
 * Any ideas?
    Thanks
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256210)
 * Are these changes in the search.php and archive.php templates?
 * The Blix theme’s custom functions used in search and archive make modifying these
   templates a bit of a pickle, but here goes:
 * Look for these two lines in both templates:
 * `<?php echo BX_remove_p($post->post_content); ?>`
 * `<?php ($post->post_excerpt != "")? the_excerpt() : BX_shift_down_headlines($
   post->post_content); ?>`
 * And swap them out with the_excerpt_reloaded() line of yours. May also want to
   track down and remove this line:
 * `<p class="info"><?php if ($post->post_excerpt != "") { ?><a href="<?php the_permalink()?
   >" class="more">Continue Reading</a><?php } ?>`

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

The topic ‘Limiting Text’ is closed to new replies.

## Tags

 * [Limiting](https://wordpress.org/support/topic-tag/limiting/)
 * [text](https://wordpress.org/support/topic-tag/text/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/limiting-text/#post-256210)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
