I would like to take a value from input "link to" in Photo Gallery by PHP and put it in <a>
tag. Something like this:
$gal_id = (int) $gallery[ $i ];
echo '<a href="' . esc_url( wp_get_attachment_url( $gal_id ) ) . '"</a>
but instead of wp_get_attachment_url( $gal_id )
I want my link from "link to".