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
Open index.php and go to line 18. Change <?php the_content(''); ?> to <?php the_excerpt(); ?> You can find out more about it here: Wordpress - The Excerpt Tag There are also many excerpt plugins, like Excerpt Editor and Advanced Excerpt.
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/
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
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.
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.
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.
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.
This link might be helpful to learn how to do this in multiple ways: http://codex.wordpress.org/Customiz...codex.wordpress.org/Customizing_the_Read_More
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?
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