ThemeShaper Forums » Thematic

[closed]

Excerpts on home page

(4 posts)
  • Started 4 years ago by thexander
  • Latest reply from Armen
  • This topic is resolved
  1. I've searched the forum and it appears that most questions re: excerpts are asking how to convert them to full posts.

    I want the opposite. How do I get the posts on my front page to only display excerpts?

    Thanks in advance. I hope this question isn't redundant because I coudln't find an answer anywhere.

    Posted 4 years ago #
  2. @thexander: This is probably what you're looking for: http://forums.themeshaper.com/topic/adding-a-loop#post-3684

    As I understand it, Thematic has a custom filter called thematic_content (found in content-extensions.php) and assuming you're ok with conditional tags, you can choose whether to display the full post, the excerpt or nothing.

    Chris explains it more fully in the link above.

    Posted 4 years ago #
  3. Hi thexander,

    Try this:

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

    -Gene

    Posted 4 years ago #
  4. @Gene:
    Thanks Gene. I had been looking for that code. I didn't know how to and what to change. But @Flick referred to me here from http://forums.themeshaper.com/topic/full-posts-showing-up-on-homepage#post-11353. Thank again!

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.