Support » Fixing WordPress » Linking to actual blog post from sidebar

  • Resolved 4star

    (@4star)


    I wanted the latest blog post to show in my front page sidebar i used the(the loop) and included

    <?php
    	$content = get_the_content('',FALSE,'');
    	$content = apply_filters('the_content', $content);
    	$content = str_replace(']]>', ']]>', $content);
    	echo substr($content,0,160);
    ?>&hellip;

    to shorten up the post. Now how can I include a read more link to the actual post? (not using the title permalink

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Linking to actual blog post from sidebar’ is closed to new replies.