PLease help Wordpress Problem need help fast

Discussion in 'HTML & Website Design' started by f-poster, May 14, 2010.

  1. #1
    hi

    i just started my new blog with the theme called light word ,i want to make my posts appear shorter on the home page so that the user will have to click the title and then be able to read the whole thing,i tried the options in the settings panel but it didnt work
    please tell me what do i do the make my post be shorter at home page.like just the summary or the first para on the home page rest the user must click the title to read the whole post

    plz pm me or post here the solution i really need help ,i am using this theme
     
    f-poster, May 14, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cash Nebula, May 14, 2010 IP
  3. f-poster

    f-poster Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #3
    ok thanks a lot i did it but i also wanted to know how can i add a "continue reading" link like this guy has done at http://www.lightwordtheme.org/
     
    f-poster, May 14, 2010 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There are two way you can do that:
    1. Reverse the changes and insert the more tag into every post. Posts without the tag are shown in full.
    2. Continue with the changes and edit the code to only show 'Continue reading'.

    I'm sure you could get a plugin that adds the more tag to every post, but if you would rather not use one then try this:
    Open index.php and go to line 24. Replace that long line of code with this:
    
    <span class="continue"><a title="<?php _e('Read more about','lightword'); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>#more-<?php echo $id; ?>"><?php _e('Continue reading','lightword'); ?></a></span><div class="clear"></div>
    
    Code (markup):
    That is just the same line without the parts that find the more tag and add the comments text. Hope that works, I have not tried it :D
     
    Last edited: May 14, 2010
    Cash Nebula, May 14, 2010 IP
  5. Michelle Waters

    Michelle Waters Member

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Using the more tag can be kind of annoying, because it's an extra step that's easy to forget. On the other hand, the_excerpt stripts out the formatting of the post.

    What I recommend you use is:

    <?php the_content_limit(150, ""); ?>

    Then you'll need to create the Read More link. So it will look something like this:

    <?php endif; ?>
    <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    <?php the_content_limit(150, ""); ?><div class="link"><a href="<?php the_permalink() ?>">Read more</a></div>
    <?php endwhile; ?>

    You'll need to check with the theme author to find out for sure if this will work within his home page/main index template.
     
    Michelle Waters, May 14, 2010 IP
  6. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes, good point! Your method is pretty cool but I think you need the Limit Post plugin to use the_content_limit() function. I can't find it in the Codex. :confused:
     
    Cash Nebula, May 14, 2010 IP
  7. Michelle Waters

    Michelle Waters Member

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #7
    Michelle Waters, May 14, 2010 IP
  8. Anthea

    Anthea Guest

    Messages:
    239
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    simply add the MORE tag where you want "continue reading" to appear !!

    All the text after that will not be available on the home page and user will be able to read only by visiting the post.
    This is very useful when you have image in your post. You can just put MORE tag before the image so that the loading time of your page get reduced.
     
    Anthea, May 15, 2010 IP
  9. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Cheers Michelle, that's great. :)
     
    Cash Nebula, May 15, 2010 IP
  10. styla786

    styla786 Member

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #10
    You should have access via FTP to your webhost. When you're logged in via FTP, go to the WordPress folder and then in wp-content, go to plugins, and remove the Twitter For WordPress plugin. It sounds like that is what is causing trouble. Your webhost should have instructions for how to log in via FTP on their website, and if not a quick call or email to support should get to someone who can help you.
     
    styla786, May 15, 2010 IP
  11. skodicious

    skodicious Guest

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    skodicious, May 15, 2010 IP
  12. f-poster

    f-poster Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #12
    thanks a lot guys i am speech less,i didnt expected anyone would come forward ,thanks a lot,and in all what should i do which method is the best one?
     
    f-poster, May 15, 2010 IP
  13. f-poster

    f-poster Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #13
    thanks a lot guys i have solved my problem

    this is what i did
    i changed the <?php the_content(''); ?> to <?php the_excerpt(); ?>
    and Controled Excerpt Length using Filters

    i was unable to use the_content_limit() function ,when i used it it gave me a fatal error undefined function on line 18 of index.php error

    so i changed it back to the_excerpt()
    and for the "continue reading" link to appear i used the code by Cash Nebula

    again thanks a lot for the help:D:D:D:D
     
    f-poster, May 15, 2010 IP