ThemeShaper Forums » Thematic

[closed]

Search results showing full pages of content...

(4 posts)
  • Started 7 years ago by firefusion
  • Latest reply from em hr
  • This topic is not resolved
  1. firefusion
    Member

    ..instead of excerpts. How can I change this?

    Posted 7 years ago #
  2. questions like this are why i am sooo desperate for better documentation. this "type" of question has been answered multiple times and it is a simple matter of tweaking the available answers to your specific question. (in this case changing is_category to is_search

    http://forums.themeshaper.com/topic/full-post-and-then-excerpts-on-category-pages

    function childtheme_content($content) {
    	if (is_search()) {
    		$content= 'full';}
    	return $content;
    }
    
    add_filter('thematic_content', 'childtheme_content');
    Posted 7 years ago #
  3. firefusion
    Member

    Ok, for whatever reason even if I set it to excerpt it still displays a full page of content. Any ideas.

    Posted 7 years ago #
  4. Try:

    function childtheme_content($content) {
        global $post;
    
    	if (is_search()) {
    		$content= 'full';}
    	return $content;
    }
    
    add_filter('thematic_content', 'childtheme_content');
    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.