problem with custom url to the featured image

I have used a wordpress plugin (Add Featured Image Custom Link) to insert custom url to the featured image.

I have two functionalities in my portfolio:

  1. when the user click on image it will popup the image; this is working properly.
  2. the anchor tag I have used for the link which I have added to featured image I want to redirect to the website of which I have added the link on featured image

How do I do #2

<div class="option inner">
    <h5><?php the_title(); ?></h5>
      $url = get_the_post_thumbnail_url(get_the_ID(),'full');
    <a href="<?php echo $url; ?>" class="fa fa-search mfp-image"></a>
    <a href="" class="fa fa-link"></a>

Read more here:

Content Attribution

This content was originally published by mudasir abbas turi at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: