Viewing 10 replies - 1 through 10 (of 10 total)
  • A quick search of the Codex brought up Customizing the Read More.

    KostRev

    (@kostrev)

    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?

    KostRev

    (@kostrev)

    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?

    t31os

    (@t31os)

    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..

    ben_griffith

    (@ben_griffith)

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

    t31os

    (@t31os)

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

    Suggestion above is one way..

    KostRev

    (@kostrev)

    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

    KostRev

    (@kostrev)

    https://codex.www.ads-software.com/Customizing_the_Read_More

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

    t31os

    (@t31os)

    <!– 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…

    https://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)…

    KostRev

    (@kostrev)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘“Read more…” link?’ is closed to new replies.