When using Wordpress as a portal news site

Discussion in 'WordPress' started by PHIL BADER, May 31, 2007.

  1. #1
    As you know, Wordpress displays the whole post content on the home page, however, If you use Wordpress as CMS, and Portal News site, you want it to just show the Headline and the brief description or introduction and then " Read More" link below, so guys how can you do that in the home.php file of the theme ?

    any help would be appreciated

    thanks
     
    PHIL BADER, May 31, 2007 IP
  2. sk999999

    sk999999 Banned

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no you can not do in home.php do when you are whriteing content more link
     
    sk999999, May 31, 2007 IP
  3. PHIL BADER

    PHIL BADER Guest

    Messages:
    274
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is possible, but I dkn how. You can't do it as you said.
     
    PHIL BADER, May 31, 2007 IP
  4. chimpymike

    chimpymike Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can do this by editing the "Main Index Template" (index.php) in your Wordpress admin and replacing the_content() with the_excerpt().
    This will just display the title and the first 55 words of the post along with a read more link.
     
    chimpymike, May 31, 2007 IP
  5. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #5
    you must add <!----more----> to your article and wirte the last of the post after this.
     
    trichnosis, Jun 2, 2007 IP
  6. chimpymike

    chimpymike Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You could do it that way too but you will have to add the <!----more----> to every single post. By changing to the_excerpt(), this will be the default for every post.
     
    chimpymike, Jun 2, 2007 IP
  7. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #7
    agnivo007, Jun 2, 2007 IP
  8. PHIL BADER

    PHIL BADER Guest

    Messages:
    274
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I have done that on my Real Madrid. The title and brief introduction indeed show, but when i click on the article i just see the same not the full article ! whats wrong !.

    thanks in advance
     
    PHIL BADER, Jun 10, 2007 IP
  9. windtalker

    windtalker Well-Known Member

    Messages:
    926
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    145
    #9
    Hey mike I just followed your advice and this does create homepage post excerpts, but there is no "read more" link to the full post. A visitor would have to click the title to go to the full post. How can I get the "read more" link at the bottom of each excerpt?

    I am using wordpress 2.2
     
    windtalker, Jun 12, 2007 IP
  10. bochgoch

    bochgoch Peon

    Messages:
    1,918
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #10
    What you need is to replace your the_content(); carefully with the following ...

    ... PM me if you need a hand ...
     
    bochgoch, Jun 13, 2007 IP
  11. Actor Mike

    Actor Mike Peon

    Messages:
    333
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Do you have a working example of that, Bochgoch? I'd love to see it in practice.
     
    Actor Mike, Jun 13, 2007 IP
  12. PHIL BADER

    PHIL BADER Guest

    Messages:
    274
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    This didn't work at all.
    Please guys help ...
     
    PHIL BADER, Jun 15, 2007 IP
  13. usmanobf

    usmanobf Active Member

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #13
    it is not difficult. when i was new to wordpress, i was also looking for help like you but after long searching on internet i found plugin that help me. Its name is "Excertpt Reloaded". Usage of this plugin is very easy. just read "Read ME" file of this plugin.
    Here is my web and u can check it http://www.newsearth.eu.

    But i suggest you to find templates that excerpt your post automatically because some times excerpt reloaded plugin do not works properly. so u need to find a good looking templates.
     
    usmanobf, Dec 22, 2009 IP
  14. cntt8x

    cntt8x Well-Known Member

    Messages:
    306
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    138
    #14
    I want to do with my site But how to insert thumbnail image 125x125 in introduction text, then click read more to view full post?
    Please guys help
     
    cntt8x, Dec 27, 2009 IP