Forums

Is there a way to strip in the <p> tag that starts the post? (5 posts)

  1. nipponese
    Member
    Posted 3 years ago #

    Can someone point me to the <p> string that encloses every post? I would rather strip it and put it in the template.

  2. nipponese
    Member
    Posted 3 years ago #

    Additionally, when the exerts display in a list of posts, is there a way to string the <p> from this? I would like to wrap it in a <img> instead.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    The post formatting is added by the_content() template tag:

    http://codex.wordpress.org/Template_Tags/the_content

    If you want custom excerpts, try using the Optional Excerpt area near the foot of each Edit Post page.

  4. nipponese
    Member
    Posted 3 years ago #

    I was thinking more a of way to edit the WP PHP directly. I am sure there has to be an $output .= "<p>;" or something similar in the source.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Have a look in wp-includes/formatting.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags