Hi, How can I make this code: $icon = '<span class="' . get_post_format($post->ID) . '-icon"></span>'; Code (markup): link to the Wordpress post? The code above displays an icon on a thumbnail on my homepage (wordpress based). But the icon is not "active", I want to make it so if the user clicks on the icon it takes him to that specific post. thanks.
Try: $icon = '<a href="' . get_permalink($post->ID) . '"><span class="' . get_post_format($post->ID) . '-icon"></span></a>'; PHP: