the_content question (1 post)

  1. thornomad
    Posted 9 years ago #


    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.


Topic Closed

This topic has been closed to new replies.

About this Topic