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

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

Result:

Snippet Type: PHP

Posted Under: Blog

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)