• I’m a noob, with that out of the way, here’s my question…. how could I make my posts to only show lets say the first 15 lines in the main page instead of the complete post?

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter miatech

    (@miatech)

    I’ve looked in the index.php and I don’t see where the loop starts at least is not commented, therefore don’t know where to insert the_excerpt(); function

    also I don’t know why these versions of WP don’t come with the code already in it

    any help appreciated

    thanks

    I can read your frustration miatech, but you must realize that there is a learning curve to every software that’s new to you. Think of this a great adventure and be polite ??

    You are most probably using the default theme “installed and coded already” in WordPress. Your problem is how to customize the theme to show excerpts instead of full posts. So look for index.php in your default theme folder (inside themes folder which is inside wp-content folder of your WordPress unzipped file). Find and replace
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    with
    <?php the_excerpt(); ?>
    Close, save and upload the file to your default theme.

    If this is beyond your ken, you will need to learn some HTML, PHP and of course CSS. Good luck.

    Thread Starter miatech

    (@miatech)

    I apologize if I sounded a bit rude….

    thanks, it worked great…now I’m getting only 3 or 4 lines in the main page… is there any way I could specify the length of the draft?

    thanks

    It’s all in the Codex article.

    Displays the excerpt of the current post with […] at the end, which is not a “read more” link. If you do not provide an explicit excerpt to a post (in the post editor’s optional excerpt field), it will display a teaser which refers to the first 55 words of the post’s content.

    To manually choose the length of the excerpt — You can use the More tag – Once you’ve written your post, make sure that you’re in Visual Mode in your WordPress Write panel. You then position the cursor and click on where you want the excerpt to stop and then click the More button. More button is the icon between the link/unlink and insert image icons and the SpellChecker icon.
    Good luck.

    thanks a lot… that was exactly what I wanted

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘complete post showing in main page…’ is closed to new replies.