Support » Themes and Templates » condensing posts on the homepage

  • mrjacksonismydad


    Does anybody know if it would be possible to have posts in a condensed or ‘snippet’ form on the home page. And then the user would click on the (read more) link to go to the full post? Is there code that I could employ or do I have to pick a completely different theme?

    Thanks for your time.

Viewing 1 replies (of 1 total)
  • stvwlf



    See this page

    In the template file used to display your homepage (in many themes index.php) you change the_content() to the(excerpt)

    For your homepage I would do it like this

    <?php if ( is_front_page() ) {
    } else {
    	the_content(... leave whatever is between parentheses the way it is... );
    } ?>

    Make a copy of the file before you change it, in case you make a mistake.

Viewing 1 replies (of 1 total)
  • The topic ‘condensing posts on the homepage’ is closed to new replies.