How do I get read more to show up on my post

Community Forums Forums General Discussion How do I get read more to show up on my post

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  alliechynna 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #64919

    alliechynna
    Participant
    Post count: 65

    Please can someone tell me how I get read more to show up on my blog. tried adding some code to my php but it didn’t work.

    Please can someone tell me where in my php/what code I need to add to it.

    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘[Continue Reading]‘;
    }

    http://alliechynna.com

    • This topic was modified 6 months, 2 weeks ago by  Susan. Reason: edited to remove the entire php file
    • This topic was modified 6 months, 2 weeks ago by  Susan. Reason: edited to remove the entire php file
    #65630

    Susan
    Moderator
    Post count: 7369

    Chynna:

    Try adding this to your functions.php file:

    // Add Read More Link to Excerpts
    add_filter(‘excerpt_more’, ‘get_read_more_link’);
    add_filter( ‘the_content_more_link’, ‘get_read_more_link’ );
    function get_read_more_link() {
    return ‘… Read More…‘;
    }


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #66733

    alliechynna
    Participant
    Post count: 65

    Thanks, just added that to the end of my php and ti keeps coming up with an error.

    #66734

    alliechynna
    Participant
    Post count: 65

    Found some other code and it seems to have worked. Thanks for your help

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

You must be logged in to reply to this topic.