How to display the first 3 lines of the post???

Discussion in 'Blogging' started by DomainMagnate, Sep 25, 2006.

  1. #1
    How can you display on the main page of the wp blog only a few lines from every post?
    I choosed the option to display part of the post in my blog, but it still shows every post :confused:

    thanks !:)
     
    DomainMagnate, Sep 25, 2006 IP
  2. MarRome

    MarRome Peon

    Messages:
    865
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    0
    #2
    couldnt you just use the more tag to split your post where you want
     
    MarRome, Sep 25, 2006 IP
    DomainMagnate likes this.
  3. SkiRat44

    SkiRat44 Peon

    Messages:
    480
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Find the code in your home.php file that says this:

    <?php the_content(__('Read more'));?>

    and replace with this:

    <?php the_excerpt(__('Read more'));?>
     
    SkiRat44, Sep 25, 2006 IP
  4. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #4
    thanks! didn't know about that before, now did some more research and used it :)

    is there some way to have it present the first few lines automatically though?
     
    DomainMagnate, Sep 25, 2006 IP
    sizzler_chetan likes this.
  5. SkiRat44

    SkiRat44 Peon

    Messages:
    480
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Not really - there are a few ways to accomplish this feature. Take a look at this page on my site, and you'll see I've done something similar. The way I've done it I am able to tell how many characters I want the excerpt to be.
     
    SkiRat44, Sep 25, 2006 IP
  6. sizzler_chetan

    sizzler_chetan Prominent Member

    Messages:
    7,838
    Likes Received:
    664
    Best Answers:
    0
    Trophy Points:
    390
    #6
    In a few themes, it comes automatically.

    You are talking about fininforums blog?
    In that Almost Spring theme, that one has to be changed.

    I had that theme before but now http://www.chattous.com
    This theme is great now.
     
    sizzler_chetan, Sep 25, 2006 IP