WordPress.org

Support

Support » Plugins and Hacks » Hacks » Shorten content with link

Shorten content with link

  • 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?

  • The topic ‘Shorten content with link’ is closed to new replies.
Skip to toolbar