• 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)
  • Thread Starter 4star

    (@4star)

    Is there a code to link to the full (single.php) of the most recent post?

    The read more link wouldn’t work since i’m only calling a few words on the sidebar…

    Thread Starter 4star

    (@4star)

    Never mind i figured it out.

    tranceplant

    (@tranceplant)

    you know you should post the solution when you figure it out. Please

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