Grow your CSS skills. Land your dream job.

WP: Limit number of words/paragraphs displayed on front page

  • # May 20, 2012 at 6:36 pm

    Hello,

    This seems like a simple task to achieve but I can’t find a way of doing it. I want to write long articles on my WordPress website but I don’t want the full article showing on the home page (my home page is my Blog). Is there a way of limiting the amount of words shown on the homepage? I know it can be done because I’ve seen it on many WP websites.

    Thank you,
    Morgan

    # May 20, 2012 at 6:45 pm

    Solved it! You use the “Split” function provided in the menu bar when creating posts.

    # July 3, 2012 at 2:12 pm

    Thanks ,

    even i am searching for wp website. its really work.

    # July 3, 2012 at 2:15 pm

    I see you already solved it, but just wanted to let you know if you ever work on a WordPress theme, there’s a handy function called the_excerpt() that will only show a certain number of words from a post, with a “Read More” link. Link below if you’re interested!

    link: http://codex.wordpress.org/Function_Reference/the_excerpt

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".