Support » Fixing WordPress » 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=""><br />
    <p class="center-text">Read More!</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.


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