ThemeShaper Forums » Thematic

[closed]

the_excerpt and the_content

(6 posts)
  • Started 10 years ago by freedimensional
  • Latest reply from js09
  • This topic is resolved
  1. Hi all,

    I am looking for a way to filter the_excerpt and replace it with the_content in all of my pages.

    What is the syntax for my child theme's functions.php?

    Thank you,
    Tom

    Posted 10 years ago #
  2. If you have Thematic 0.9.5 (no clue if older versions support this as well) then add the following to your childthemes functions.php

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

    At least that works for me. :)

    Posted 10 years ago #
  3. For all pages:

    function childtheme_content() {
      return 'full';
    }
    add_filter('thematic_content', 'childtheme_content');

    Cheers,

    Chris

    Posted 10 years ago #
  4. Even better! Tausend Dank :)

    Posted 10 years ago #
  5. Perfect - thank you both!

    Tom

    Posted 10 years ago #
  6. js09
    Member

    bump for an important problem solved.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.