How to get "read more" to show up on archives when using custom excerpts

Community Forums Forums Design Tips and Tricks How to get "read more" to show up on archives when using custom excerpts

This topic is: not resolved

This topic contains 5 replies, has 4 voices, and was last updated by  ratsnacks 11 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #52153

    rick4him
    Participant
    Post count: 128

    I’m trying to figure out how to get the read more tag to show up in the archives when using a custom excerpt. I was able to add some code to my functions php that got it to work when using featured posts amplified on the home page….but I’d like it to show up in the archives / category pages. No one seems to be able to know how to do this…any thoughts on this anyone?

    Thanks!

    Here’s my site: http://www.noahsdad.com/

    http://noahsdad.com/
    #71946

    Susan
    Moderator
    Post count: 9255

    Rick – since you posted this a while back, I’m hoping you were able to get this issue resolved. If not, can you please respond back, and let me know, and I’ll see if I can get someone to help you out.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #72725

    ratsnacks
    Participant
    Post count: 14

    I have the exact same issue – does anyone know a solution?

    #72760

    Summer
    Participant
    Post count: 1105

    This is a tutorial that shows hwo to add the “Read more” to both the automatic and manual excerpts:

    http://www.studiograsshopper.ch/code-snippets/customising-the_excerpt/


    #72814

    ratsnacks
    Participant
    Post count: 14

    Thanks – in the end I tried a few things, from plugins to various code snippets – the one shown at http://codex.wordpress.org/Excerpt#How_to_add_a_link_beneath_an_excerpt_to_the_full_post (the second piece of code, pasted below, that goes in functions.php) almost did the trick but it adds the read more link to EVERY excerpt, including page excerpts that I have added.

    Does anyone know how I would adjust this code to ONLY apply to blog posts, and not to pages?

    function excerpt_read_more_link($output) {
     global $post;
     return $output . '<a href="'. get_permalink($post->ID) . '"> Read More...</a>';
    }
    add_filter('the_excerpt', 'excerpt_read_more_link');

    Many thanks

    #72817

    ratsnacks
    Participant
    Post count: 14

    Thanks – in the end I tried a few things, from plugins to various code snippets – the one shown at http://codex.wordpress.org/Excerpt#How_to_add_a_link_beneath_an_excerpt_to_the_full_post (the second piece of code, that goes in functions.php) almost did the trick but it adds the read more link to EVERY excerpt, including page excerpts that I have added.

    Does anyone know how I would adjust that code snippet to ONLY apply to blog posts, and not to pages? I tried pasting the code here but it didn’t work.

    Many thanks

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.