Shorten content with link (1 post)

  1. Sinopa
    Posted 5 years ago #

    Could someone please help me a bit.
    I use this code to shorten content on archive.php so I get one line content.
    <?php echo substr(strip_tags($post->post_content), 0, 50);?>
    But I also want it to link to the page with the content it has shorten. Does anyone know how?

Topic Closed

This topic has been closed to new replies.

About this Topic