treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Read More (WordPress)

  • hi

    i have started to create a wordpress theme for my self and with the help of the designing-for-wordpress-complete-series i'm doing well and understanding the procedure.

    though from following the tutorial - on my home page a get all my posts showing one after the other in full - though i would like for them to appear in short version and then have the read more like

    at the moment i have this

    <?php the_content('Read the rest of this entry »'); ?>


    i looked on the wordpress docs and it recommends to to the following : (though it does not work)

    <?php the_content('read more'); ?>


    can you give me any suggestions

    thanks in advance
  • You have to make sure in the post that you've written you've included the "more" tag. In HTML view it looks like this:

    <!--more-->

    You can also use the_excerpt(); if you're never planning on having full posts on that page.
  • ye now it works - thanks a lot