read more link

Discussion in 'WordPress' started by dean5000v, Aug 5, 2008.

  1. #1
    hey well ive been working hard to embed wordpress into a website here what it looks like so far.

    http://www.dormerfinance.co.uk/wordpress/

    i have added in some lorem lipsum text just to feel the gaps, but the problem is at the moment when i add in a new post it adds in the entire document rather then like 100 words and then a read more link.

    I am new to wordpress and dont really know how to do this, does anyone have any pointers ?
     
    dean5000v, Aug 5, 2008 IP
  2. choice

    choice Prominent Member

    Messages:
    5,444
    Likes Received:
    490
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    2
    #2
    There is a read more button in the wordpres text editor or you can simply switch to html and enter <!--more--> where you want it to be.
     
    choice, Aug 5, 2008 IP
  3. System0

    System0 Well-Known Member

    Messages:
    168
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #3
    I personally believe the excerpt is a better option. However, thats just a personal preference.

    If you use the_content, you need to specifiy where the article is broke on the main page with the more tag which Grouse mentioned. This means you have control of when the article is stopped and where the read more link is placed.

    I prefer using the_excerpt, this means that every article is stopped after a certain number of characters or words.
     
    System0, Aug 5, 2008 IP
  4. xxll_martin_llxx

    xxll_martin_llxx Well-Known Member

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Could you explain how and where exactly the the_excerpt code should appear with some "test" code?

    I've tried following the information on WordPress' site but I came a little unstuck, I'd like to use this function.

    Cheers
     
    xxll_martin_llxx, Aug 5, 2008 IP
  5. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #5
    look for "the_content" in your index.php. Replace it with "the_excerpt".
     
    mizaks, Aug 5, 2008 IP
  6. xxll_martin_llxx

    xxll_martin_llxx Well-Known Member

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    155
    #6
    It seems that it just stops text in the actual message/post showing - I still want a LITTLE text to give the reader a taste of the article to see if they want to carry on reading.

    Is there some other edits to make with the_excerpt code?

    www.ultraway.net < Now the text has gone but if you click the title it does indeed take you to the post but I still want SOME text showing.
     
    xxll_martin_llxx, Aug 5, 2008 IP
  7. adithya

    adithya Well-Known Member

    Messages:
    568
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    110
    #7
    After one para just enter <!--more--> in the html or code view of the post
    One can also use excerpt but the IMO former option is best
     
    adithya, Aug 5, 2008 IP
  8. xxll_martin_llxx

    xxll_martin_llxx Well-Known Member

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    155
    #8
    I think I prefer that way to be honest - <!--more-->. Is there really much difference between the two?

    One thing I will ask though is the text that appears when you type <!--more-->, which file can that be found in because I'd like to change it.

    Thanks.
     
    xxll_martin_llxx, Aug 6, 2008 IP