Forums
Home / Fixing WordPress / Linking to actual blog post from sidebar
(@4star)
15 years, 4 months ago
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); ?>…
to shorten up the post. Now how can I include a read more link to the actual post? (not using the title permalink
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…
15 years, 3 months ago
Never mind i figured it out.
(@tranceplant)
15 years ago
you know you should post the solution when you figure it out. Please