In our recent project we want to use the excerpt as the meta description for single post. Here is the original codes: [php] /* * output meta description info */ function ultra_meta_desc() { echo ‘<meta name="description" content="’; if (is_single()){ the_excerpt(); } else { echo bloginfo( ‘description’ ); } echo ‘"/>’; } [/php] But the result