Thematic Snippet: Show full content / enable $more link in archives

I can never find this incredibly useful snippet when I need it, so I'm blogging it.

If you child-theme Thematic, you'll notice that archive and search results pages only return the excerpt rather than the full content. This snippet changes that to give your archive pages the full impact:

// Make sure thematic_content is always set to full to enable the more link
function childtheme_content($content) {
	if (is_home() || is_front_page()) {
			$content = 'full';
		} elseif (is_single()) {
			$content = 'full';
		} elseif (is_tag()) {
			$content = 'full';
		} elseif (is_search()) {
			$content = 'full';
		} elseif (is_category()) {
			$content = 'full';
		} elseif (is_author()) {
			$content = 'full';
		} elseif (is_archive()) {
			$content = 'full';
	return $content;
add_filter('thematic_content', 'childtheme_content');

Hope someone else finds this useful!

Digg This
Reddit This
Stumble Now!
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Buzz this!

Printed from: © divydovy 2020


RSS feed for comments on this post , TrackBack URI