WordPress.org

Support

Support » How-To and Troubleshooting » Posts are too long…is there a plugin to cut their lenght?

Posts are too long…is there a plugin to cut their lenght?

  • Hi,

    I started a blog few days ago and I can’t find the option to show only a preview of the post and not all its content.

    Someone told me to add this:

    <!–more–>

    Is the only or best option? If so, where I have to add it?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Samuel B
    Participant

    @samboll

    Hey 2F2F,

    If you add <!–more–> make sure you’re in the html tab. If you’re in the visual tab, there is broken line icon to add this. You can add it wherever you want, gotta try to see the difference 🙂
    Good luck

    also, you can look in your index.php for the_content (this displays full posts), and switch it to the_excerpt (which displays excerpts)

    this will affect all of your posts on your main/index page

    Thanks everyone,

    I tried the excerp option but nothing happened.

    Thanks

    really?

    you replaced:
    <?php the_content('Read the rest of this entry &raquo;'); ?>

    or similar

    with
    <?php the_excerpt(); ?>

    or does your theme look different?

    I will check better, I’m making a mess…

    Also, is there a way to avoid that one category of posts shows in the main page with all its posts and being visible only once you click that category?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posts are too long…is there a plugin to cut their lenght?’ is closed to new replies.