Wordpress help using excerpts

Discussion in 'HTML & Website Design' started by Bloggintown, Jun 3, 2009.

  1. #1
    Hi - I have a wordpress problem. I'm updating a theme and I want to start using the excerpt's on the home page.

    What I want is to write the post. Then, write a brief summary of the post that will appear on the homepage. When you click the title, it will take you to the actual post.

    I've tried to do this but I can't get wordpress to read anything I've written in the excerpt section on the post.

    Thanks
     
    Bloggintown, Jun 3, 2009 IP
  2. ahsan_ma07

    ahsan_ma07 Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding <--more--><--noteaser--> tags in html view after your brief description of post. The description will not show up in the actual post. All the content after the above tags will show up in the post page. You can get more information about this over here.
     
    ahsan_ma07, Jun 3, 2009 IP
  3. sachy24

    sachy24 Well-Known Member

    Messages:
    605
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #3
    go to index.php/home.php

    find a php code code called the_content()..delete it.

    and paste this code there

    <?php the_excerpt(); ?>
    <a href="<?php the_permalink(); ?>" title="Read the rest of <?php the_title(); ?>" class="more-link">Read More »</a>
     
    sachy24, Jun 3, 2009 IP
  4. Bloggintown

    Bloggintown Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    that totally worked.

    Thank you so much! You have now idea how much time I've spent on this!
     
    Bloggintown, Jun 3, 2009 IP
  5. 3drendering

    3drendering Peon

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah its a Really Worked....
     
    3drendering, Jun 4, 2009 IP
  6. sachy24

    sachy24 Well-Known Member

    Messages:
    605
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #6
    sachy24, Jun 4, 2009 IP