Home / functions.php / Replace read more link
  • How to Replace read more link

    no thumbnail sorry: Replace read more link

    Adding this code to your functions.php file of your wordpress theme will allow you to replace the read more link.

    ( click code to copy )

    wordpress snippet : PHP

    $custom_more = "Continue reading this post";
    add_filter( 'the_content_more_link', 'my_more_link', 10, 2 );
    function my_more_link( $more_link, $more_link_text ) {
    	return str_replace( $more_link_text, $custom_more, $more_link );

    ( WordPress codex functions, hooks, in this snippet. )

    the_content, add_filter,