1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Help: How do I display only a summary of each post on the homepage?

Discussion in 'WordPress' started by zman, Nov 23, 2005.

  1. #1
    Hi all,

    Can anyone tell me th equickest way to make it so that only a summary of each post shows up on the homepage?

    Thanks in advance!

    Eric
     
    zman, Nov 23, 2005 IP
  2. ImVickieB

    ImVickieB Berserker

    Messages:
    158
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you put the "more" quicktag after the first paragraph or so, it will only show the text above that and then have a link to read the rest of the post. Doesn't help with current posts, unless you go back and edit, but all future ones will work.
     
    ImVickieB, Nov 23, 2005 IP
    zman likes this.
  3. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeh, as said above use the more tag
    <!--more-->
    Code (markup):
    anything before it will show as summary and anything after will show when they click the more link
     
    just-4-teens, Nov 23, 2005 IP
    zman likes this.
  4. zman

    zman Peon

    Messages:
    3,113
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thats it? :eek:

    Ok, thanks for the help!
     
    zman, Nov 23, 2005 IP
  5. corena

    corena Peon

    Messages:
    1,455
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do you know if that "more" tag works on blogger?
     
    corena, Nov 23, 2005 IP
  6. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #6
    never used blogger so i dont know, but it works on most blogging software.
     
    just-4-teens, Nov 23, 2005 IP
  7. zman

    zman Peon

    Messages:
    3,113
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Next question...

    I can't for the life of me find this:
    <div id="header">

    So that I can make the header link to the homepage. Any ideas where I would find it in the default kubrick template?
     
    zman, Nov 23, 2005 IP
  8. WhatiFind

    WhatiFind offline

    Messages:
    1,789
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    180
    #8
    Go to control panel > Presentation > Theme Editor > Header Template, that's where it is in mine (Custom build template, but it should be there)
     
    WhatiFind, Nov 23, 2005 IP
  9. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #9

    also note be able to edit/save files via admin panel the files need to be writable by the server (CHMOD 666)
     
    just-4-teens, Nov 23, 2005 IP
  10. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #10

    the skins/theme are located in the wp_content/themes/ folder.
    not sure what theme folder kubrick is in but the header.php file will contain the <div id="header">

    it should be something similar to

    </head>
    <body>
    
    <div id="page">
    
    
    <div id="header">
        <h1 class="header"><strong><?php bloginfo('name'); ?></strong></h1>
        <div id="menu">
    Code (markup):
     
    just-4-teens, Nov 23, 2005 IP
  11. pinkeyedjim

    pinkeyedjim Well-Known Member

    Messages:
    166
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #11
    If you want just excerpts of your posts, you can also do this:

    I think that if you type a summary of the article into the box in wordpress that says "excerpt" you can then replace the <?php the_content(); ?> with <?php the_excerpt(); ?> in your main template, so long as you have a seperate "single post" template that has <?php the_content(); ?> in it.

    For more: codex.wordpress.org/Template_Tags/the_excerpt
     
    pinkeyedjim, Nov 23, 2005 IP