WordPress.org

Ready to get started?Download WordPress

Forums

mPress Custom Feed Excerpts
Change "Continue Reading" Text (2 posts)

  1. sarahsbakestudio
    Member
    Posted 10 months ago #

    I would like to change the continue reading text to either include the blog post title, or remove it all together. Is this something that can easily be done?

    Thank you!

    http://wordpress.org/plugins/mpress-custom-feed-excerpts/

  2. Micah Wood
    Member
    Plugin Author

    Posted 10 months ago #

    Yes. Below is an example of how you would display the blog post title instead of the 'continue reading' link:

    add_filter( 'mpress_custom_feed_excerpts_continue_reading_link', 'custom_feed_excerpt_link' );
    
    function custom_feed_excerpt_link() {
    	global $post;
    	$post_title = get_the_title( $post );
    	$permalink = get_permalink( $post );
    	$link = '<a href="'. $permalink .'">'. $post_title .'</a>';
    	return $link;
    }

    You can place that code in your active theme's functions.php file.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.