Wordpress - Adding Read More

7 replies
  • WEB DESIGN
  • |
My posts are cut off on the home page so you don't see the whole posts.

They are followed by a ... and the only way to read the full post is to click on the title.

I'd like there to be a link below each one of my posts that says:

Click Here To Read More in my orange color I have on my site and on it's own line beneath the text.

Does anyone know how I can do this in wordpress?

And also if anyone knows how I can cut off on my page to only display 7 posts and have a link below my posts that says:

Read More Posts, and leads to where all my posts are that would be great to learn!

Thanks,
Ryan

The site is my phlebotomy site in the signature.
#adding #read #wordpress
  • Profile picture of the author BripTech
    Hello, search for "wordpress tag more" and you will find plenty tutorials to fully customize your view.

    The official tutorial is still a good resource: click here.

    Hope this helps
    Signature

    "In three words I can sum up everything I've learned about life: it goes on". (Robert Frost)

    {{ DiscussionBoard.errors[4498718].message }}
  • Profile picture of the author samueld
    You can do it from wordpress, when posting new article. Also you can go threw single.php and just find [...] replace it with Read More and link it. That's it.
    {{ DiscussionBoard.errors[4499595].message }}
  • Profile picture of the author Istvan Horvath
    OK, guys, if you give advice on WP - you should know at least the basics.

    The [...] ALWAYS should tell everyone that in that multipost template (index, archives, search, whichever) the theme developer used
    <?php the_excerpt(); ?>

    and not

    <?php the_content(); ?>

    template tag. The excerpt tag will cut your post automatically at the first 55 words. No read more link. With the content tag you can manually insert the "read more" link wherever you want.

    Note. There are themes that have built-in an automatic cut after certain number of words/lines/paragraph AND the display of the read more... link.

    So, next time read before posting advice:
    Function Reference/the excerpt « WordPress Codex
    Function Reference/the content « WordPress Codex

    To the OP:
    - 7 posts on main page > get familiar with your WP... Settings > Reading
    - for "read more" > edit the theme's template files (aka replace the excerpt tag with the content tag; see above) OR try another theme
    Signature

    {{ DiscussionBoard.errors[4499993].message }}
  • Profile picture of the author Patrick
    Paste this in your functions.php file..

    function trim_excerpt($text) { global $post; $moreLink = ' ... <a href="' . get_permalink($post->ID) . '">Read More &raquo;</a>'; $text = str_replace('[...]', $moreLink, $text); return $text; } add_filter('get_the_excerpt', 'trim_excerpt');

    Customize as per your needs..
    {{ DiscussionBoard.errors[4501063].message }}
    • Profile picture of the author RatRaceWatch
      Schwarzes you are the best! Thank you so much!

      Do you know how I can get the read more to appear on it's own line beneath the text?


      And do you have any idea how if I list 7 posts, I can have something beneath the posts that says "Read More Posts" and basically takes me to pages where it displays 10 posts on each page.

      Thanks again for your help!
      Signature
      At Manifest Income our mission is to Help You Build A Business That Matches Your Passion.

      We offer: Free Business Plans, Web Design, Online Marketing Training, Mentorship, & Support!
      {{ DiscussionBoard.errors[4501415].message }}
      • Profile picture of the author Patrick
        Originally Posted by RatRaceWatch View Post

        Schwarzes you are the best! Thank you so much!
        Haha thanks. But I am not the best, no one can be the best !

        Originally Posted by RatRaceWatch View Post

        Do you know how I can get the read more to appear on it's own line beneath the text?
        You need to show me the website where it is being done, then I can advise.

        Originally Posted by RatRaceWatch View Post

        And do you have any idea how if I list 7 posts, I can have something beneath the posts that says "Read More Posts" and basically takes me to pages where it displays 10 posts on each page.
        For this, you need to create a static link below those posts, and link it to that page.
        {{ DiscussionBoard.errors[4501529].message }}

Trending Topics