Title: php the_content()
Last modified: August 18, 2016

---

# php the_content()

 *  Resolved [bestfoot](https://wordpress.org/support/users/bestfoot/)
 * (@bestfoot)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/php-the_content/)
 * This wraps the content in p tags. I don’t want p tags, I want they wrapped in
   li tags. Is there some other way for me to do this?

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

 *  Thread Starter [bestfoot](https://wordpress.org/support/users/bestfoot/)
 * (@bestfoot)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/php-the_content/#post-608976)
 * Found this great plug in-
    [Content Extract](http://www.webspaceworks.com/resources/wordpress/44/)
   that I was able to modify and use. I simply forced it to always grab content 
   and never mind the extract if there is one and then remove the leading and trailing
   html tags and insert my own.
 *  [erick_paper](https://wordpress.org/support/users/erick_paper/)
 * (@erick_paper)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-the_content/#post-609273)
 * This is an annoying “feature” of WordPress. What’s the point of templating if
   the template tag will itself force <p> and </p> tags around the values returned?
 * Wp team, please consider:
 * 1. Returning values for the_excerpt and the_content without any surrounding tags,
   whatsoever. There should be an option to strip HTML tags for both.
 * 2. Allowing the_excerpt and the_content to be returned into values (instead of
   just displaying them with functions) so we can use them in PHP variables to do
   out stuff.
 * Thanks.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-the_content/#post-609274)
 * For the record: I am not part of what would be considered the “WP team”, a.k.
   a. developers.
 * However my gut reaction to your “big” idea is this:
    99.99% of the WP users just
   want to blog. They don’t want and they don’t know any PHP code and trickery. 
   And the software provided by the WP team is excellent for what it was meant: **
   blogging**.
 * So, stop posing your personal, unique expectations as mass demand. They are not.
   And if you know code that well… write your own.
 *  [skits](https://wordpress.org/support/users/skits/)
 * (@skits)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/php-the_content/#post-609280)
 * Yeah but Moshu, if the ability that he is talking about WAS added, is it going
   to prevent people from blogging? No. Will it make it more user friendly for those
   that want to customize? Sure. Win win situation.

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

The topic ‘php the_content()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [skits](https://wordpress.org/support/users/skits/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/php-the_content/#post-609280)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
