Below is the code to modify the read more link when using the WordPress More Tag to break a post on your site:
Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.
Below is the code to modify the read more link when using the WordPress More Tag to break a post on your site:
<?php //* Do NOT include the opening php tag shown above. Copy the code shown below. //* Modify the WordPress read more link add_filter( 'the_content_more_link', 'sp_read_more_link' ); function sp_read_more_link() { return '<a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>'; }
© 2025 WPEngine, Inc.
WP Engine is a proud member and supporter of the community of WordPress® users. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. WP Engine is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.