WordPress.org

Support

Support » How-To and Troubleshooting » get permalink from loop to use as href in anchor outside of the loop

get permalink from loop to use as href in anchor outside of the loop

  • I have a nivo slider. It pulls images from a loop that calls the “slider_image” magic field from each post. these images are wrapped in anchor tags that href the permalink. so if you click on the current image – it’ll take you to that posts single page. (streaming video)

    NOW – I also have a play button, ( a small circle in the corner ) but it is not in the loop.

    is there a way I can get the current permalink from that loop – and bring it outside to use in the href for this little button ?

    it seems like I should be able to make a variable or something… any ideas ?

  • The topic ‘get permalink from loop to use as href in anchor outside of the loop’ is closed to new replies.