WordPress.org

Ready to get started?Download WordPress

Forums

Read more... Issue (2 posts)

  1. Irenkaa
    Member
    Posted 2 years ago #

    Hello! I have a little issue with my Read More code. I want to split the Read More button from the content, but I don't seem to get it to work. I've tried some things that were in the documentation of WP, but I couldn't figure it out.

    This is my code:

    <div class="content">
    <?php the_content( __( 'Read more &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&rarr;', 'twentyten' ) ); ?>
    </div>

    And this is what it becomes when it's running:

    <div class="content">
    <p>
    Here you have some text
    <a class="more-link" href="link">Read more -></a>
    </p>
    </div>

    So my problem is that the 'a' is IN the 'p' and I want it outside of it so I can place it properly. Anyone knows how I should handle this?

    I'm sorry, I can't provide you with a link, I'm doing this with xampp, I can however make screenshots of the code/firebug/whatever you need :)

    Thanks for helping in advance.

  2. sdelamorena
    Member
    Posted 2 years ago #

    Do you need a read more link (with <--more--> tag) or a permalink?

    Try with this Codex article. ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic