HELP: How can I add a "Read more..." link to my Wordpress 3.1 blog posts?

8 replies
  • WEB DESIGN
  • |
I have two things I would like to change with my self-hosted Wordpress sites...

PROBLEM 1:

1) It seems that updating Wordpress to 3.1 has removed the "Click here to read more..." link from the end of my blog post excerpts. This is what I have tried so far but none of them worked to add the "Read more" link...
a) I tried adding this code to the index.php to same location that works for all of my pre-WP 3.1 sites and it didn't work:
<a href="<?php the_permalink() ?>" rel="bookmark"><b>Click here to read the rest of this entry >>></b></a>

b) I activated a "Read More" excerpt plugin and that did not work.

c) I found several sites that mentioned the same problem (I think) with the code below to add to functions.php but none of them said exactly where to paste the code. This is the code:
// Changing excerpt more
function new_excerpt_more($more) {
global $post;
return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More &raquo;' . '</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');


PROBLEM 2:


On each of my blog post excerpts it says the following:
Filed under: tags are here | Comments Off

I'm not going to allow comments for this site and want to remove the words "Comments Off" Any idea's?


Any suggestions will be greatly appreciated.

Thanks
Steve
#add #blog #link #posts #read more #wordpress
  • Profile picture of the author KathyK
    Did you try WordPress › Support » Read More link disapeared after update 3.1 the fix on that page?

    We'd need to see the template, probably, to help you with the "Comments Off".
    Signature

    Cheers,
    Kathy

    {{ DiscussionBoard.errors[3745812].message }}
    • Profile picture of the author Harry Spencer
      Hello

      Usually the theme will either display the content(full post) or the excerpt(first 100 characters and read more link) you can switch between each by changing the index.php file, find the code " the_content" and change to "the_excerpt".

      When you disable comments in pages or posts there are a couple of places where the "no comments" might show up. You need to remove some code from each file, check page.php, single.php and index.php for the "no comments" text And remove the code that is displaying the text, just a line or 2 but the no comments text should help you find each instance.

      Hope that helps

      Harry
      Signature

      Follow me on Twitter and My Blog
      200 FREE Sources of Stock Photos, Images, Backgrounds and Textures Free PDF no opt-in
      Download My Training Call With Lee McIntyre Over 70 Minutes Of Juicy Internet Marketing Content FREE

      {{ DiscussionBoard.errors[3745934].message }}
      • Profile picture of the author magentawave
        Originally Posted by Harry Spencer View Post

        Hello

        Usually the theme will either display the content(full post) or the excerpt(first 100 characters and read more link) you can switch between each by changing the index.php file, find the code " the_content" and change to "the_excerpt".

        When you disable comments in pages or posts there are a couple of places where the "no comments" might show up. You need to remove some code from each file, check page.php, single.php and index.php for the "no comments" text And remove the code that is displaying the text, just a line or 2 but the no comments text should help you find each instance.

        Hope that helps

        Harry
        I can see the excerpts but the problem is that there is no "Read more" link at the end of the excerpt for visitors to click on. There is just this [...] at the end of each excerpt.

        As far as the comments issue... I want to remove the words "No Comments" which appears under each blog post. I did a search using the Command F feature on my Mac in page.php, single.php, index.php and all the other templates and there seems to be no text that says "No Comments" anywhere. Do you know anywhere else I could look?

        Thank you
        Steve
        {{ DiscussionBoard.errors[3747636].message }}
    • Profile picture of the author magentawave
      Originally Posted by KathyK View Post

      Did you try WordPress › Support » Read More link disapeared after update 3.1 the fix on that page?

      We'd need to see the template, probably, to help you with the "Comments Off".
      Yes I saw that page but there wasn't enough information there for me to fix the problem.

      Thank you
      Steve
      {{ DiscussionBoard.errors[3747551].message }}
  • Profile picture of the author KathyK
    On the comments off problem.

    You need to look for comments_popup_link and there should be stuff in there in parenthesis ('No Comments', '1 comment', - or something like that - depending on your theme. I can't tell you exactly what to look for without knowing your theme.

    See this explanation on the wordpress site - it also give you the code to hide it completely - of course, if you are never going to use comments, you can also just remove it.
    Signature

    Cheers,
    Kathy

    {{ DiscussionBoard.errors[3751945].message }}
    • Profile picture of the author SetMyWebsiteUp
      download the plugin Post Teaser from your wordpress plugins.

      The author is WeyHan.

      Totally customizable.

      cheers,

      Bryan

      P.S. Please check out my about me page on Warrior. My site link is in my profile until I can gain credibility by posting more...thanks!
      {{ DiscussionBoard.errors[3752667].message }}
      • Profile picture of the author magentawave
        Thanks very much for the Post Teaser plugin tip! That plugin works great on WP 3.1.1



        Originally Posted by SetMyWebsiteUp View Post

        download the plugin Post Teaser from your wordpress plugins.

        The author is WeyHan.

        Totally customizable.

        cheers,

        Bryan

        P.S. Please check out my about me page on Warrior. My site link is in my profile until I can gain credibility by posting more...thanks!
        {{ DiscussionBoard.errors[3754720].message }}
    • Profile picture of the author magentawave
      This is the site News | that I need to remove the words "| Comments Off" that is below each post excerpt. I circled them in the attached screenshot. Do you know how I can remove that? Not sure if it will mean anything to you but the theme is the Expert Wordpress Review 1.0 theme. I've looked everywhere in the editor for "Comments Off" using Command F on my computer and can't find that.

      Also, for some reason I'm unable to turn on the dates the posts were published. I've never had that problem before until WP 3.1.1. Do you know how I can get the post dates to show?

      Thanks again.
      Steve


      Originally Posted by KathyK View Post

      On the comments off problem.

      You need to look for comments_popup_link and there should be stuff in there in parenthesis ('No Comments', '1 comment', - or something like that - depending on your theme. I can't tell you exactly what to look for without knowing your theme.

      See this explanation on the wordpress site - it also give you the code to hide it completely - of course, if you are never going to use comments, you can also just remove it.
      {{ DiscussionBoard.errors[3754709].message }}

Trending Topics