Viewing 3 replies - 1 through 3 (of 3 total)
  • mrdanzhang,

    I haven’t thoroughly looked into this but the alternative is to use the limit-post plugin. You can download it here: http://www.doc4design.com/plugins/limit-post/. This will give you more control over the length of the excerpt and this version also provides the additional option of printing the excerpt without markup.

    Thread Starter mrdanzhang

    (@mrdanzhang)

    Hi,

    Thanks for help. I downloaded and activated the plugin, but how to actually utilize it? below is instruction, where and how to replace “_content()”? Does it mean to change the plug-in’s code? even after that, will posts automatically be suppressed or user have to manually make excerpts somehow?

    Sorry fairly new to blogs. just trying to shorten posts to summaries to make blog easier to read.

    thanks much!

    Log-in to the WordPress administration panel and visit the Plugins page.
    Locate the Limit Post plugin and click on the activate link.
    Replace the_content(); with the_content_limit(200, “continue…”); or
    Replace the_content(); with get_the_content_limit(200, “continue…”);

    mrdanzhang,

    I completely missed this post.

    The code to replace is located within your theme files. The theme files are located here: Appearances > Editor. To the right hand side you will see a list of files that make your theme. Open up the files you would like to alter and look for the code:

    <?php the_content(); ?>

    If you would like to shorten the length of this content entry then change it to something like:

    <?php the_content_limit(200, "continue..."); ?>

    This will allow 200 characters to print and if longer will include ‘continue…’ at the end. Change either of these however you would like.

    No need to alter the plugin code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘excerpt’ is closed to new replies.