Support » Fixing WordPress » Bug in the_content function

  • Hello

    I’m using WP 2.5 and default theme. In index.php of default theme :
    <?php the_content('Read &raquo;'); ?>

    but I want to include this text into <div> like this :
    <?php the_content('<div>Read &raquo;</div>'); ?>

    Problem : in html source code I can see :

    <div>Read &raquo;</div>

    How to insert a blank line to separate link of post with div ?

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think this will work… (make sure it’s inside double quote)
    <?php the_content("<div>Read &raquo;\n</div>"); ?>

    none of that is necessary.

    the more link by default is of the class “more-link” so all you need to do is style it any way you like.

    If you want it to appear on the next line, as though it were a div, all you need to do is…

    <?php the_content(‘Read »’); ?>

    and in your style.css put the definition:

    .more-link { display: block; }

    thank you it works !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug in the_content function’ is closed to new replies.