• Resolved RenFromPenn

    (@renfrompenn)


    I want print the URL of the current page under the post. Does any one know how I might go about doing that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yeah, just plonk <?php the_permalink() ?> where you want it… 🙂

    If you have a problem using it, let me know some details about what file you’re adding it to etc…. 😉

    Thread Starter RenFromPenn

    (@renfrompenn)

    That worked perfectly. Thanks! 🙂

    You’re welcome…

    Please mark as resolved.. (to the right —>)

    Watch out – this will only work if the_permalink() is called from inside the loop. If you call it outside the loop you’ll get a link, but it won’t be for the current page!

    Yes that’s right, as we’ve found the codex isn’t very clear on noting.

    You’d pass an ID into the function when used outside the loop.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Current URL Under the Post’ is closed to new replies.