WordPress.org

Support

Support » How-To and Troubleshooting » the_content question

the_content question

  • Hi,

    I am trying to make my website XHTML valid; having trouble with how the_content creates <P> & </br> wrapping around the linke for <!--more-->.

    What I want, simply, is something like this in my template:

    <?php the_content('<p class="center-text">Read-More
    '); >

    I want the read more text to be set apart, below, and centered.

    However, this creates the following HTML output:

    <p>blog entry. <a href="http://192.168.1.100/~damontimmm/wordpress2/?p=8#more-8"><br />
    <p class="center-text">Read More!</p>
    <p></a>
    </p>

    Which is not valid. I have tried a span tag, but that throws a in there where I don’t want it, and I have tried closing the first
    tag however, the_content puts the link BEFORE where I would close the previous paragraphs .

    Any suggestions ? Am out of ideas.

    D

  • The topic ‘the_content question’ is closed to new replies.