[SOLVED] How do I customize the teaser for each blog post on my main page
Probably a noob Q, but I can't figure it out. I write blog posts, and the default Montezuma treatment is to just grab the first few sentences, and display them as the teaser/excerpt on my blog's main page.
But I actually want to write completely customized excerpts for my blog posts to appear as the teasers. For example, a blog post may start "I'm going to write all about my favorite restaurants..." But I want the TEASER / excerpt that appears on my blog's main page to just say something like "Check out my trip reports for Chicago's best restaurants" How do I do that? |
if you manually craft an excerpt in the post edit, it will automatically show up.
|
Quote:
http://img84.imageshack.us/img84/1669/herea.jpg |
edit the subtemplate 'postformat.php' and change the line
HTML Code:
<?php bfa_excerpt( 55, ' ...' ); ?> HTML Code:
<?php the_excerpt(); ?> |
Quote:
http://img87.imageshack.us/img87/4286/whyaf.jpg FWIW, my subtemplate now looks like: Quote:
|
bump; any ideas? I can't for the life of me figure out where that ... and 'read more' text is coming from!?
|
try removing teh
HTML Code:
<?php _e( 'read more →', 'montezuma' ); ?></a> |
Quote:
http://img843.imageshack.us/img843/1102/surew.jpg EDIT: maybe this helps...when i delete this line entirely: <?php the_excerpt(); ?> the ugly '...read more' disappears too (but so does the entire excerpt, obv). So i guess what i'm trying to get rid of resides in the the_excerpt element. Where do i find that thing to tweak it? |
Solved:
looked in the functions.php file and found this, and removed the bolded line (tell me, I suppose, if I shouldn't have done that, or whether it'll cause problems in the future.): // Add custom Read More link to manual excerpts: function bfa_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) $output .= bfa_read_more_link(); return $output; } add_filter( 'get_the_excerpt', 'bfa_custom_excerpt_more' ); |
All times are GMT -6. The time now is 08:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.