WordPress.org

Ready to get started?Download WordPress

Forums

"Read more..." link? (11 posts)

  1. AcLime
    Member
    Posted 5 years ago #

    Hello people,

    How to make read more link in wordpress? I can't find how to do that.

  2. scribblerguy
    Member
    Posted 5 years ago #

    A quick search of the Codex brought up Customizing the Read More.

  3. KostRev
    Member
    Posted 5 years ago #

    I've read the previously mentioned article but still can't sort out why my read more doesn't appear on the page. Does the Loop have to look a certain way? Am I missing a function?

  4. KostRev
    Member
    Posted 5 years ago #

    I've tried adding a "read more" link to my homepage posts and to posts on specific template pages to no avail. If you have content in the admin excerpt field will the "read more" link display?

  5. t31os
    Member
    Posted 5 years ago #

    I think you need to be using the excerpt to have the read more link.

    Whether the excerpt field is empty doesn't matter, as long as you're grabbing content using the_excerpt() and not using the_content().

    If the excerpt field is empty it automatically grabs the first 55 characters of the post content instead..

  6. ben_griffith
    Member
    Posted 5 years ago #

    @ KostRev
    Try this:
    <?php the_excerpt(__('Read more'));?>

  7. t31os
    Member
    Posted 5 years ago #

    Silly me, you have a point, you still need to create the link in your theme....

    Suggestion above is one way..

  8. KostRev
    Member
    Posted 5 years ago #

    What I'd like to do is to "keep the_content() template tag as is and insert a quicktag called more into your post at your desired "cut-off" point" -- from

  9. KostRev
    Member
    Posted 5 years ago #

    http://codex.wordpress.org/Customizing_the_Read_More

    This explains what we should be able to do but for some reason the <!--more--> quickcode does nothing.

  10. t31os
    Member
    Posted 5 years ago #

    <!-- more --> doesn't do anything for me, though i also keep seeing examples that suggest it should... either that or more simple represents 'more' content... :-)

    KostRev, if you're not entering info into the excerpt field then it automatically grabs XX amount of characters from the content of your post is what i was saying...

    If you want a set cut off point via [A custom TAG] then the <!-- more --> thing would be a good thing to do it, i'm just not sure <!-- more --> is what i think we both assumed it was.

    However the excerpt accepts plenty of characters, so why not just write your posts, then copy and paste the bit you want shown into the excerpt box, and grab your set piece of content via the_excerpt...

    I've done it on my top most article here...

    http://www.t31os.co.uk/

    The text you see is what's pasted into the excerpt field, it's just a copy and paste of the first few paragraphs...

    The articles below all have empty excerpt fields, so they automatically grab XX amount of characters from the post, which is actually 90 characters on my site done via a custom theme function (default is 55)...

  11. KostRev
    Member
    Posted 5 years ago #

    Agreed, that is what I've done as well (use the excerpt field and the the_excerpt template tag) and it works as you have described. I guess I just wish I knew how to meet the conditions of <!--more--> quickcode. It would seem that this option would offer greater simplicity with my template and more control in the admin.

    Well thanks for the update. At least I am not the only one having trouble with this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.