Previous post shortlink
-
Hey guys so far I have this code that gives me the full link to my previous post
<?php $prevPost = get_previous_post(FALSE); if($prevPost) {?> <div class="prev1" onclick="javascript:_gaq.push(['_trackSocial', 'Nav', 'Prev-Thumb']);"> <?php previous_post_link('%link',"?", FALSE); ?> </div> <?php } ?>
But I want the shortlink instead of the full link
How can I accomplish that ?
Thank you in advance
- The topic ‘Previous post shortlink’ is closed to new replies.