fix links in posts.php