Forums

[resolved] display only part of the post (4 posts)

  1. ciuncky
    Member
    Posted 2 years ago #

    Hy,

    I am using a template that displays the entire post in the Archive of categories. Can I add some code so that only a part of the text will be displayed, let's say....20 rows? And if yes, where?

    Thanks, Alex

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. wp_noobamatic
    Member
    Posted 2 years ago #

    in your code probably under file named archive.php look for where it says <php get_content(); ?> assuming that it says that replace that with <?php the_excerpt(); >? that will give u the excerpt of the blog. let me know if that works.

  4. ciuncky
    Member
    Posted 2 years ago #

    Yes, that worked, ty a lot noobmatic...
    but, for me, it was displayed the_content instead of get_content. however, same stuff. :)

    thanks a lot, once again!

Topic Closed

This topic has been closed to new replies.

About this Topic