WordPress.org

Ready to get started?Download WordPress

Forums

P2 Help / Changing the amout of a post shows up on the index page (7 posts)

  1. k1llahurtz
    Member
    Posted 5 years ago #

    I'm trying to make a small change to the site layout. On the main page a post will have all text and all comments. I'm trying to cut this off so only a few lines of txt show without any comments.
    Then once someone chooses a post title everything would show up properly.

  2. k1llahurtz
    Member
    Posted 5 years ago #

    I managed to cut out the comments on the index page by removing //if ( is_single() )// comments_template( ); on entry.php. Still trying to set up a limit on word count on the index page. Installing plug-ins doesn't help

  3. martcol
    Member
    Posted 5 years ago #

    Just to add to this, I think I would like to know how to do it as well. On my blog page, I would prefer just the first few lines of the blog to appear.

    Thanks

    Martin

  4. k1llahurtz
    Member
    Posted 5 years ago #

    Do I need to add a function for this to work? It looks like the code reads off a theme function list.

  5. k1llahurtz
    Member
    Posted 5 years ago #

    <?php the_excerpt(); ?> I think is the answer. I just can't get it to work properly with entry.php. It seems to either show up in the wrong place or not at all.

  6. mjg
    Member
    Posted 5 years ago #

    I use the plugin WP Limit Posts Automatically to show a maximum of 180 characters on the main page.

  7. noel
    Member
    Posted 5 years ago #

    thanks @mjg

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags