retrieve permalinks of posts inside custom post type by using post ID
Maybe I’m missing something, but you seem to have missed one of the most ubiquitous functions in WordPress Core– get_permalink(). The function accepts two optional parameters, the first of which is the post ID. So, to get the permalink via the post ID all you need is $perm = get_permalink($post_ID);. If you just need to … Read more