WordPress Post - need some help

Discussion in 'HTML & Website Design' started by teope, May 26, 2008.

  1. #1
    Hello,

    I would like to ask you how and what i should do if i want my post shows only few lines of texts and one photo, but when you want to see the whole post you can see the rest of the text and the rest of the photos.

    I want index page to show only 1 photo from my gallery and few lines or a whole text ( but only 1 photo) , how to do thi ?
     
    teope, May 26, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The post itself on the post page, or on the category/blog index? I can't help you with the former, but the latter can be taken care of by using the_excerpt() instead of the_content()
     
    Dan Schulz, May 26, 2008 IP
  3. UseShots

    UseShots Peon

    Messages:
    244
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    I guess you want to preview a small portion of the post on the home (index) page of your blog with a "read more" link to the whole post.

    You should use the "more" tag in the WordPress post editor.

    In the "visual" mode of the editor, place the cursor where you want the preview portion to end and click the more button (it look like two white rectangles) or press ALT+SHITF+T.

    In the HTML mode the corresponding button has the word more on it. Or simply type <!--more-->

    That's it. The rest WordPress will do for you.
     
    UseShots, May 27, 2008 IP