WordPress.org

Ready to get started?Download WordPress

Forums

Getting post to show only headers (8 posts)

  1. afreshup
    Member
    Posted 8 years ago #

    Newbie at CMS /Blogging I think I have the site pretty well set up however I can not find the verbage to insert into my index.php that will only show a few lines of text as opposed to the whole article.

    That being said I have looked on the web site and know it has to do with 'the loop" bur after an hour of waiting for the nausiatingly slow website to show the knowledge base I decided to come to you guys for help.

  2. Kafkaesqui

    Posted 8 years ago #

    Look for this in your index.php:

    <?php the_content(); ?>

    and change it to this:

    <?php the_excerpt(); ?>

  3. gabon
    Member
    Posted 8 years ago #

    hi kafkaesqui, it makes sense, but what if I'm using the excerpt for tagging the posts? Thanks, chr

  4. afreshup
    Member
    Posted 8 years ago #

    Thanks !

  5. Kafkaesqui

    Posted 8 years ago #

    gabon? How so are you using it for "tagging," and perhaps a better question, why?

    If the excerpt is being used for something other than an actual excerpt, description, or summary note of the post's content, see my plugin the_excerpt Reloaded, which allows you to force post content (abbreviated, naturally) to be used even when there is an excerpt:

    http://guff.szub.net/the-excerpt-reloaded/

  6. afreshup
    Member
    Posted 8 years ago #

    This is what my index.php in my themes folder says...I cant find <?php the_content(); ?> anywhere in my entire website?

    <?php
    require_once(TEMPLATEPATH . '/header.php');

    the_posts();

    require_once(TEMPLATEPATH . '/footer.php');
    ?>
    I am using the Semiologic, 3 columns 3.2 theme...anyone familiar with this?

  7. gabon
    Member
    Posted 8 years ago #

    On my version 2.0 there was:

    <?php the_content('Read the rest of this entry »'); ?>

    that I converted in:

    <?php the_excerpt('Read the rest of this entry »'); ?>

    It shows correctly the excerpt, but how to add the "more" button at the end of the post? Is there an embedded function or do I have to do it by hands?

  8. gabon
    Member
    Posted 8 years ago #

    I've noticed another thing. It is not possible to use html in the excerpt. Is there anyway to enable it?

Topic Closed

This topic has been closed to new replies.

About this Topic