• sindrejh

    (@sindrejh)


    On the first page of my web-page I want a “Read more” link under the exerpt of every post. But I have a lot of newbies that post on my page. Therefor I want this to happens automatic, so I don’t have to learn them how the <!–more–> button works. How can i do this?

    I also want the links to look something like “Read the rest of ‘the name of the post’ ” I tried this: <?php the_content(“‘><?php the_title(); ?>“), () ; ?> But it didn’t work.

    Pleace try to explain in a easy way; I’m not so experienced!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter sindrejh

    (@sindrejh)

    Ofcourse I tried: <?php the_content(‘Read the rest of <?php the_title() ?>’;) ?>

    not

    <?php the_content(“‘><?php the_title(); ?>”), () ; ?>

    I think you see that I haven’t really learned php ??

    NuclearMoose

    (@nuclearmoose)

    You could use an excerpt instead.
    https://codex.www.ads-software.com/Template_Tags

    Thread Starter sindrejh

    (@sindrejh)

    I have tried that, but how do I then get a link that the readers can click to see the full story?

    pericat

    (@pericat)

    Add a link below the line <?php the_excerpt() ?> to that entry’s permalink:

    <p><a href="<?php the_permalink() ?>" title="full post">Read more...</a></p>

    Kafkaesqui

    (@kafkaesqui)

    Also see my plugin the_excerpt Reloaded, which adds a more link to excerpts (see the info on the force_more_link parameter).

    I tried adding the code two posts up and I get a parse error. Could someone help me figure out what’s wrong?

    <?php if(is_category() || is_archive()) {
    the_excerpt() <p><a href="<?php the_permalink() ?>" title="full post">Read more...</a></p>;
    } else {
    the_content('Read the rest of this entry &raquo;');
    } ?>

    I’ve also tried it like this with the same result:

    <?php if(is_category() || is_archive()) {
    the_excerpt();
    <p><a href="<?php the_permalink() ?>" title="full post">Read more...</a></p>;
    } else {
    the_content('Read the rest of this entry &raquo;');
    } ?>

    Also, on this same subject, sort of, would here be a way to show more entries (these excerpts) on the archives pages that I do on the main pages? Because my entries are long, I limit the main page to six posts. But, now that I see I can use the excerpts tag to shorten the posts on the archives page, I’ve love to show around 20 excerpts per page so readers would not have to page so much.

    This change would be whereever the Options/Reading/Blog Pages option sets something.

    Any way to do this?

    I found the simple plugin to change the number of pages shown depending on the type of page!

    https://www.ads-software.com/support/topic.php?id=24031

    If anyone could look at my coding question, two posts up I’d really appreciate it!

    Please.

    Guess I’ll have to give up here and try the question elsewhere.

    Helpful redirect RE slobizman’s issue:

    https://www.ads-software.com/support/topic.php?id=29085

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘“Read more” without using <!–more–>’ is closed to new replies.