How do I always show the Read More link?
Always Show Read More
(3 posts) (2 voices)-
Posted 1 year ago #
-
For example:
http://www.kevinfocus.com/The homepage is a custom page template that calls the query_posts. See code:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts($query_string.'&posts_per_page=$paged&cat=6&showposts=5');
while (have_posts()) : the_post();?><div id="post-<?php the_ID(); ?>" class="post frontpage <?php echo $postType;?> <?php echo $lastThumb;?> <?php bigfeature_post_class(); ?>">
<div class="post-title cufonheading"><h3>" rel="bookmark" title="<?php printf(__ ('Permanent Link to %s', 'BigFeature'), get_the_title())?>"><?php the_title(); ?></h3>
<?php if (in_array('Comment Icon', $bf_meta)) { ?><div class="comment"><?php comments_popup_link('0', '1', '%'); ?></div><?php } echo '</div>'; ?>
<?php bf_before_post_content(); ?>
<?php if ($imageBelowTitle) echo '<div class="postimage image-below-title">'.$image.'</div>'; ?>
<?php bf_excerpts(false,$bf_normalpost_numwords,$postType); ?>
<?php bf_after_post_content(); ?>
</div><?php endwhile; wp_reset_query(); ?>
I see the call to bf_excerpts, but I don't know how to tell it to display the 'Read more' link. It would also be nice if a '...' were added to the end of sentences that were cut in half.
Hope my question makes more sense now. :)
Posted 1 year ago # -
add a <!--more--> tag in the post, add an excerpt or set the automatic limmiter ("Limit frontpage text" in the theme settings (or one of the other limit fields below)). the ... can be added in the bf_excerpts functions in theme-functions.php (in library/functions). Edit this:
$content .= " ";to this:$content .= "...";Posted 1 year ago #
Reply
You must log in to post.