Title: Limiting posts by $post-&gt;post_content
Last modified: August 19, 2016

---

# Limiting posts by $post->post_content

 *  [eike_in_canada](https://wordpress.org/support/users/eike_in_canada/)
 * (@eike_in_canada)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/limiting-posts-by-post-post_content/)
 * Hi,
 * I was trying to limit the display of a post on index.php by more-tag. In my theme
   the limiting is done by that:
 * ($post->post_content, 200)
 * That shows only 200 characters of a post. I want to display the post until more
   tag. Does anybody know how to do that? What do I have to write instead of 200?
   Or isn’t it that easy?

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

 *  [GabrielCol](https://wordpress.org/support/users/gabrielcol/)
 * (@gabrielcol)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/limiting-posts-by-post-post_content/#post-1930963)
 * <?php the_content(); ?> should do it if is about index file 🙂
 *  Thread Starter [eike_in_canada](https://wordpress.org/support/users/eike_in_canada/)
 * (@eike_in_canada)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/limiting-posts-by-post-post_content/#post-1930967)
 * Thanks. That worked. I was trying that before but I didn’t realise that I have
   do change the whole code phrase. I tried it with change “200” only. My fault 
   🙂
 * Another question: In single.php the part of the post until more-tag should be
   displayed bold. I found a tutorial how to hide the stuff before more tag in single.
   php. Does anybody know how to bold it?
 * Thanks
 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/limiting-posts-by-post-post_content/#post-1930987)
 * [http://codex.wordpress.org/Customizing_the_Read_More](http://codex.wordpress.org/Customizing_the_Read_More)
 *  Thread Starter [eike_in_canada](https://wordpress.org/support/users/eike_in_canada/)
 * (@eike_in_canada)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/limiting-posts-by-post-post_content/#post-1931024)
 * Thanks, but this is not what I mean. This customizes the “Read More” itself. 
   I want to format that text of the post that is used as a teaser via more tag.
 * Example:
 * _“This is my post. <!–more–> And this is the rest of the text.”_
 * “This is my post.” should be shown on index.php, not bold. After clicking Read-
   more-button, the whole post will be shown. “This is my post.” should be bold 
   here and the rest not bold.
 * Thanks for your help.

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

The topic ‘Limiting posts by $post->post_content’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [eike_in_canada](https://wordpress.org/support/users/eike_in_canada/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/limiting-posts-by-post-post_content/#post-1931024)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
