• Right now, I’m having trouble with making the_content() (specifically the read more function) XHTML compliant.

    You see, I want to align the “read more” link to the right and put it in separate line (using the <p></p>). However, when I put that in the function parameters, the function puts the “a href” tag before the “p” tag, which makes it XHTML invalid.

    Are there any future plans to fix this problem?`

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m using 2.5 and I don’t have this problem. I’m using the following code:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    Then when you’re posting, if you want the “more link” to be on its own line, just hit enter when writing the post as you would to create a new paragraph.

    Thread Starter john010117

    (@john010117)

    The problem is, I want to align it to the right, also (while being XHTML valid).

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The more link automatically gets a class of more-link on it. If you want to right align it, right align that class. Something like this in your stylesheet:

    .more-link {
    display:block;
    text-align:right;
    }

    Never add code to the HTML when you only want to move things around on the page.

    Thread Starter john010117

    (@john010117)

    Ok, thanks. I appreciate it.

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