Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am working on wordpress but I have problem when I write
the_content('read more');

then on indexpage each post load full data of post but I want to

but when I am using the_excerpt(); then wordpress return a 10-15 word on index page and when i click for read more or click on title of post then 30-40 words just show without images...

Please help me what should I do?

check here is screenshot

share|improve this question
    
Are you saying that you want the post excerpt to appear on the blog posts index, and that you want the full post content to appear on single blog posts? –  Chip Bennett Feb 14 '12 at 13:32
add comment

1 Answer

Assuming that you want the full post content to appear only on single blog posts, and that you want the post excerpt to appear everywhere else, try something like this inside your Loop in index.php:

<?php
if ( is_singular() ) {
    the_content( 'Read More' );
} else {
    the_excerpt();
}
?>

Additional Codex reading:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.