• Resolved ebeard

    (@ebeard)


    I have been looking through the docs looking for an answer to this. It is eluding me. For purposes of helping to avoid the appearance of duplicate content (from search engines point of view), I read a suggestion that said to make the recent posts on the blog home page just snippets with the Permalink to the entire article. This source referred to a “MORE feature” in WordPress, but I cannot find anything like this.

    Does this make sense to do, and if so, how can I get it done?

Viewing 13 replies - 1 through 13 (of 13 total)
  • As you hover your mouse over those little icons above the post editor, you’ll see little descriptions pop up of what they do. Look for the one that says something like, “Split posts with the More tag”. If using the WYSIWYG editor (the default), it’s just to the right of the icon that looks like a shrub.

    Thread Starter ebeard

    (@ebeard)

    Thanks…so this has to be done for each individual post, and there is no way to do a universal setting that applies to all?

    You mentioned the “More” functionality, which you control post by post.

    Want it automated? Edit your index.php and replace the_content with the_excerpt.
    Now it’ll be done automatically for all posts.

    If you do that, you’ll come back in the next month or two wanting more control of your excerpted posts. You might want to control the excerpt length or you’ll wish that excerpts wouldn’t strip your images. So, just to be pre-emptive, I’ll mention the excerpt reloaded. A nifty little plugin that you may look into some day.

    Thread Starter ebeard

    (@ebeard)

    I finally downloaded and installed “the excerpt reloaded”. Now the problem is, I can’t find any information on how to use it. Unlike other plugins I’ve installed and activated in WP, this one doesn’t show a link anywhere in the control panel that I can find.

    How do you work with this one?

    Thanks!

    The instructions are on the download page, under the “Usage” heading…

    Thread Starter ebeard

    (@ebeard)

    Do you just go to the plugin editor and make those changes then? I must be missing something, because my blog’s home page is not showing snippets of any kind even with this plugin activated.

    Thread Starter ebeard

    (@ebeard)

    Do I replace this line in the index template:

    <?php the_excerpt() ?>

    with this one?

    <?php the_excerpt_reloaded(excerpt_length, ‘allowedtags’, ‘filter_type’, use_more_link, ‘more_link_text’, force_more_link, fakeit, fix_tags); ?>

    I hope I am making progress here….

    Yep, you’re on the right track. πŸ™‚

    Right below that Usage sample are the Parameter descriptions. You’ll use those to control how things look/act.

    Thread Starter ebeard

    (@ebeard)

    Reading down further, I put this string:

    <?php the_excerpt_reloaded(); ?>

    In place of the one that was there:

    <?php the_excerpt() ?>

    This should work and display using the default values, but nothing has changed. I have refreshed the browser, everything. The plugin is activated. Still missing something?

    By default, with no parms set, it’ll act a lot like the_excerpt.

    I imagine we could help you with the parms — what are you after?

    Thread Starter ebeard

    (@ebeard)

    Well, it should show a 120 word snippet by default with that line I changed. Here is what the instructions show:

    <?php the_excerpt_reloaded(); ?>

    Displays defaults: 120 word excerpt; allow anchor (<a>) tag; β€˜excerpt’ as filter type, use β€œ(more…)” as more link if excerpt less than content; fake content as excerpt unless post has an excerpt.

    But nothing happens…..

    Thread Starter ebeard

    (@ebeard)

    This has become frustrating….here is the code from my index.php page. Can someone tell me what to paste where to make this plugin work?? I have set up the string <?php the_excerpt_reloaded(); ?> with and without explicit options, and nothing happens when I put it inside the Loop below. Maybe I have it in the wrong place.

    <?php get_header(); ?>
    <div id=”content” class=”narrowcolumn”>
    <?php if (have_posts()) : ?>
    <?php $post = $posts[0]; // Thanks Kubrick for this code ?>
    <?php if (is_category()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php echo single_cat_title(); ?></h2>
    <?php } elseif (is_day()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php the_time(‘F j, Y’); ?></h2>
    <?php } elseif (is_month()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php the_time(‘F, Y’); ?></h2>
    <?php } elseif (is_year()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php the_time(‘Y’); ?></h2>
    <?php } elseif (is_author()) { ?>
    <h2><?php _e(‘Author Archive’); ?></h2>
    <?php } elseif (is_search()) { ?>
    <h2><?php _e(‘Search Results’); ?></h2>
    <?php } ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”post”>
    <h2 class=”postheader” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <div class=”meta”><img align=”right” src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/postheaderend.gif” width=”22″ height=”22″ style=”margin: -4px 0 0 0″ alt=”” /><?php _e(“Posted in”); ?> <?php the_category(‘,’) ?> by <?php the_author() ?> on <?php the_time(‘F jS, Y’) ?> <?php edit_post_link(__(‘Edit This’)); ?></div>
    <div class=”entry”>
    <?php if (is_search()) { ?>

    <?php the_excerpt() ?>
    <?php } else { ?>
    <?php the_content(__(‘Continue Reading »’)); ?>
    <?php } ?>
    </div>

    <div class=”meta2″><div style=”float:left”>” rel=”bookmark” title=”<?php _e(‘Permanent link to’); ?> <?php the_title(); ?>” class=”permalink”><?php _e(‘Permalink’); ?> | <?php comments_popup_link(__(‘Comments’), __(‘Comments (1)’), __(‘Comments (%)’), ‘commentslink’, __(‘Comments off’)); ?></div></div>
    </div>
    <?php endwhile; ?>

    <?php posts_nav_link(”, __(”), __(‘« Previous entries’)); ?>
    <?php posts_nav_link(‘ · ‘, __(”), __(”)); ?>
    <?php posts_nav_link(”, __(‘Next entries »’), __(”)); ?>
    <?php else : ?>
    <h2><?php _e(‘Not Found’); ?></h2>
    <p><?php _e(‘Sorry, but no posts matched your criteria.’); ?></p>
    <h3><?php _e(‘Search’); ?></h3>
    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thread Starter ebeard

    (@ebeard)

    I finally got it….I was on the wrong track…I replaced:

    <?php the_content(__(‘Continue Reading »’)); ?>

    with….

    <?php the_excerpt_reloaded(); ?>

    Now why didn’t the docs for that plugin just say that? πŸ™‚

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Short Post Snippets on Blog Home Page’ is closed to new replies.