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.

Need some WP help

Discussion in 'WordPress' started by kiteguy123, Feb 19, 2009.

  1. #1
    Hi guys.
    Basically, I've seen blogs where on the homepage it shows around half the post, then at the end puts a [...], meaning you have to go to the post page to view the whole thing.

    How do I do that? And how do I set it so it only shows a certain amount of words?

    Rep will be given :)

    Thanks
     
    kiteguy123, Feb 19, 2009 IP
  2. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,614
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Big0ne, Feb 19, 2009 IP
    kiteguy123 likes this.
  3. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #3
    Hmm, tried adding that in but didn't work, just showed up in the post as if it was normal text?
     
    kiteguy123, Feb 19, 2009 IP
  4. seosheen

    seosheen Peon

    Messages:
    293
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Bigone is saying well
     
    seosheen, Feb 19, 2009 IP
  5. mrhrk01

    mrhrk01 Well-Known Member

    Messages:
    664
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    145
    #5
    Kiteguy you have to place that tag mentioned in the screen shot in the post but you also have to ensure that the html editor is turned on NOT the wysiwyg gui if you nderstand what i mean ?

    If not PM and ill try to help you

    Kind Regards
     
    mrhrk01, Feb 19, 2009 IP
  6. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The actual solution is to change your template, wherever it says the_content() change to the_excerpt() That will automatically show first 50 words or so followed by ....

    Check out my site http://jesusdevotionals.org

    If you want to change number of words, you will probably have to edit functions.

    Rep me up :)
     
    Lpe04, Feb 19, 2009 IP
    campolar and kiteguy123 like this.
  7. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #7
    Awesome! Thanks for the help! :) Rep added.

    How do I vary the amount of words it shows? Do I simply put the excerpt I want to be seen into the 'excerpt' box on the add new post page of the Wordpress admin area? Thanks again.
     
    kiteguy123, Feb 19, 2009 IP
  8. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,480
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #8
    Why don't you use Excerpts plugin for that :confused:

    Have a look at below given. It may be help.

    dailyblogtips.com/homepage-excerpts-wordpress-plugin/

    DON.
     
    deluxdon, Feb 19, 2009 IP
    rsrikanth05 likes this.
  9. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    To Don. I don't know about the Wordpress plugin, never used it before. Give it a shot if you like.

    As far as the excerpt box, it should do it automatically, but Wordpress may give you the option to add your own excerpt (rather than the automatically generated one). If you just put the code in you should be good to go (everything is taken care of through the excerpt function). I thought maybe you could change the word amount by adding a parameter, but its not available. Here is the full doc on it http://codex.wordpress.org/Template_Tags/the_excerpt

    To change the amount of words shown, you would have to manually edit the code. Go to includes/formatting.php and look for "function wp_trim_excerpt" (past halfway) and you should see 55 somewhere in there, change it to whatever you want.

    Lance
     
    Lpe04, Feb 19, 2009 IP
    deluxdon likes this.
  10. jimmy03

    jimmy03 Well-Known Member

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #10
    Using plugin in better option than editing Code.
    And you can easily upload this plugin in your wordpress plugin folder.
    This will work f9 for you.
    Most of the people who uses wordpress makes use of plugins rather than going for editing codes, as these plugins are freeely available.
     
    jimmy03, Feb 20, 2009 IP
  11. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #11
    mizaks, Feb 20, 2009 IP
  12. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Sorry, I do it the hard way :)
     
    Lpe04, Feb 20, 2009 IP
  13. rsrikanth05

    rsrikanth05 Well-Known Member

    Messages:
    1,362
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    190
    #13
    Thanks a lot, DON.

    Rep added..
     
    rsrikanth05, Feb 21, 2009 IP
  14. getadviced

    getadviced Well-Known Member

    Messages:
    557
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    130
    #14
    i use this plugin, its has so many good options to use.
    http://wordpress.org/extend/plugins/wp-limit-posts-automatically/

    This is a quote from the wordpress plugin directory...
    Its options
    Limit posts by letter, word or paragraph
    Limit posts in home, category, archive and search
    Choose number of letters to cut with
    Strip tags (disables images, videos and links when limit posts)
     
    getadviced, Feb 21, 2009 IP
  15. rsrikanth05

    rsrikanth05 Well-Known Member

    Messages:
    1,362
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    190
    #15
    Thanks a lot, you helped me a lot....
     
    rsrikanth05, Feb 22, 2009 IP