ThemeShaper Forums » Thematic

[closed]

How to change the posts to show the_excerpt()

(2 posts)
  • Started 4 years ago by winnard2010
  • Latest reply from azoomer
  • This topic is not resolved
  1. winnard2010
    Member

    Hi Guys,

    I am new to the thematic theme and wordpress in general. Currently my thematic theme is showing the whole post on the page, I want to change it to show only the_excerpt(). I have managed to change it in the archives.php page but cannot see how to do it in the others like index.php etc.

    This is probably easy but not sure how to do it. Can anybody help?

    Cheers Dan

    Posted 4 years ago #
  2. azoomer
    Member

    Hi. Good question. I found this code that works:

    function child_content($content) {
    	if ( is_home() ) {
    		$content = 'excerpt';
    	}
    return $content;
    }
    add_filter('thematic_content', 'child_content');

    It should be pasted in your functions.php
    It is from this post:
    http://forums.themeshaper.com/topic/custom-excerpts
    And here is another one that might be of interest:
    http://forums.themeshaper.com/topic/read-more-link-in-excerpt-redux#post-6323

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.