 <p>You can use get_permalink the way you use get_post: <a href="http://codex.wordpress.org/Function_Reference/get_permalink" rel="nofollow">http://codex.wordpress.org/Function_Reference/get_permalink</a></p> <pre><code>$post_id = 105; $queried_post = get_post($post_id); $title = $queried_post-&gt;post_title; $permalink = get_permalink($post_id); echo '&lt;a href="' . $permalink . '"&gt;' . get_the_post_thumbnail($post_id) . '&lt;/a&gt;'; </code></pre> <p>However, the permalink is likely in the $queried_post object. You can <code>print_r($queried_post)</code> to inspect it.</p>