I use the bSocial theme.
Within the index.php file, that theme uses the_excerpt_rss() to display information accompanying its "Top 3" posts placed on the home page.
This function adds a date stamp in brackets (e.g., [ January 7, 2011; 7:00 pm to 9:00 pm. ] ) to the beginning of the excerpts of posts which correspond to an event.
I do not want that date stamp, and furthermore would like to have a "read more"-type link which links to the full post page, so I was investigating using the_excerpt() instead of the_excerpt_rss() in the index.php file.
I have entered custom excerpt text for the posts I am testing, but when I use the_excerpt() in the index.php file, my custom text is not displayed. Instead, the actual main content of the post is shown. Furthermore, what is shown is 100% identical to what is shown if I were to use the_content() instead, even when I use a <!--more--> tag.
In short, using the_excerpt() within the bSocial theme index.php page Top3 section does not seem to work the way I would expect it to.
I would like to have help figuring out why I can't get custom excerpt text to display when I use the_excerpt() as described here.
Incidentally, I get the same results whether I have selected "Full text" or "Summary" in the Reading Settings.
Thanks for any help you can provide.
Let me know if more info / settings is needed.
- Linc
P.S. In case it helps anybody, this is the relevant code from the bSocial theme index.php. The call to the_excerpt_rss is near the end.
<div id="top3" class="clearfix">
<h3><center>Featured Events and News</center></h3>
<?php $my_query = array( 'showposts' => '1', 'cat' => $wp_theme_options['top3_cat_left'] ); $my_query = new WP_Query($my_query); ?>
<?php $my_query = "showposts=1&cat=".$wp_theme_options['top3_cat_left']; $my_query = new WP_Query($my_query); ?>
<?php if ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php $ignore[] = $post->ID; ?>
<div class="post">
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php $thumb_img = portfolio_get_post_image( $post->ID, 'Thumbnail', 278, 100, $crop = false); ?>
<?php if ( ! empty( $thumb_img ) ) : ?>
<img src="<?php echo $thumb_img; ?>" />
<?php endif; ?>
<p><?php the_excerpt_rss(); ?></p>
</div>
<?php endif; ?>