Support » Fixing WordPress » help wth the_content

  • In most (all?) themes, this code:

    <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>

    seems to be turned into (simple case):

    <div class="entry">
    <p>This is the body of a short post</p>
    </div>

    Can someone tell me where “the_content” is created and where the comes from? I’ve scoured every source file that contains a reference to the_content and can’t seem to find it. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Thread Starter joedan

    (@joedan)

    Sorry… my fault… question was not clear enough. Want I want to be able to do is change how “the_content” is created. Specifically I want to change the tag that is injected into “the_content”

    In other words, you want to manipulate the P tags and so on, as shown in your “simple case” example?

    Sort of like the markdown and textile plug-ins? Then you’d be looking to write a post content filter plug-in, wouldn’t it be that? (In that case then I think there are plug-in sections in the Codex as well.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘help wth the_content’ is closed to new replies.