Snippets: How to Add “More” Link Inline for Blog Entries

By default the Total theme disables the "more" tag because it has built-in custom buttons for your blog entries. However, you can re-enable it with the following function

function myprefix_enable_blog_more_link( $args ) {
	if ( wpex_is_blog_query() ) {
		$args['more'] = '…<a href="'. get_permalink() .'">[more]</a>';
	}
	return $args;
}
add_filter( 'wpex_excerpt_args', 'myprefix_enable_blog_more_link' );

Result:

Snippet Type: PHP

Posted Under: Blog

All PHP snippets should be added via a child theme's functions.php file.