Posted: . At: 3:06 PM. This was 8 years ago. Post ID: 8502
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.
To display post excerpts in WordPress, put this code in the index.php
<?php if(is_single() || is_page()) { ?>
<?php the_content(__('(more...)')); ?>
<?php } else { ?>
<?php the_excerpt(__('(more...)')); ?>
<? } ?> |
<?php if(is_single() || is_page()) { ?>
<?php the_content(__('(more...)')); ?>
<?php } else { ?>
<?php the_excerpt(__('(more...)')); ?>
<? } ?>
This will display full posts when the post is clicked, but excerpts on the main blog page. This is a simple way to customize your WordPress page and make it easier to read and navigate.