SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast ewin's Avatar
    Join Date
    Jul 2007
    Location
    Washington, D.C.
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WordPress Article Summaries

    I'm using WordPress 2.2.1 on my ecommerce blog. On the homepage, I'd like to display only the first 100 words or so, for new posts. I've seen this done on other WordPress installations, however I can't seem to find the setting for this on the admin side. Is this a feature available in the off the shelf version? Is it a custom query? Or, is it a plugin that is used to display article summaries on the home page?

    Many thanks to anyone that can assist with this little question.
    Josh Ewin, Director of Marketing
    Solar VPS - The Best Price to Performance Ratio In Cloud and VPS Hosting

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    When writing a post, click the "more" button in the editor to insert a break. Only the text before the separator will show up in lists like the homepage, while the entire text will display on the post page.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ewin View Post
    I'm using WordPress 2.2.1 on my ecommerce blog. On the homepage, I'd like to display only the first 100 words or so, for new posts. I've seen this done on other WordPress installations, however I can't seem to find the setting for this on the admin side. Is this a feature available in the off the shelf version? Is it a custom query? Or, is it a plugin that is used to display article summaries on the home page?

    Many thanks to anyone that can assist with this little question.
    Well I can think of two options. The first is to use the 'more info' tag manually when you write a post. You can then put it at a place which makes sense to a human rather than a set number of characters.

    The second option is that on your Main Index Page where it calls the post you could put in a small bit of code which used only the first few hundred characters to do so automatically.
    Advertise any site or service FREE in this forum!
    Join and make 5 posts anywhere.You can post as
    many sites or services as you desire after 5 posts.
    Visit my Tech/Gaming/DIY/LASER Blog - NM Waves.com

  4. #4
    SitePoint Enthusiast ewin's Avatar
    Join Date
    Jul 2007
    Location
    Washington, D.C.
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks to Dan and Aurora. I ended up using the more tag. Thanks again!
    Josh Ewin, Director of Marketing
    Solar VPS - The Best Price to Performance Ratio In Cloud and VPS Hosting

  5. #5
    Bananas contain Zinc fonzerelli_79's Avatar
    Join Date
    Oct 2001
    Location
    Scotland
    Posts
    816
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can use the the_Excerpt instead of the the_content function in index.php

    you should also check out these plugins

    The Excerpt Reloaded and the content extract plugin


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •