How to pull sticky post permalink inside php?

In your functions.php probably you want:

echo '<a href="' . get_permalink()  .'">'; 

There’s a function is_sticky( int $post_id ) which will let you see when a post is sticky. On the page you want to hide the sticky, inserting this line in the PHP at the top of the loop while tell it to skip to to the next post if this one is a sticky:

if (is_sticky()) continue;

If you get stuck with that, post the PHP of the start of the loop on the page that you want to hide the sticky in.