get current url

  • Author
    Posts
  • #140550

    ex20
    Member

    How to get a current url? I tried such:
    “><img src=http://dev.tribine.lv/img/add_tribine.gif border=0>

    but it didnt worked.

    #141102

    ex20
    Member

    I tried using the_permalink(), but it didnt work.

    #141133

    cornell
    Member

    Huh?

    What are you trying to “get the current URL” for?

    I can give you lots of “current URLs” but the likelihood is that none of them will be what you’re looking for. Please, provide a little more information and we’ll be able to help.

    Collin

    #141135

    You’ll need to ask over at http://www.wordpress.org . This forum is for WP-MU hosted users, which do not have PHP access capabilities.

    #141143

    Oh…I was wondering about the PHP…thanks!

    #141200

    ex20
    Member


    <img src=http://dev.tribine.lv/img/add_tribine.gif border=0>

    so instead of xxx there would be a current url (current blog article).
    This is meant for if the user reads an article then he sees this image (button) and when clicking on it he is navigated to that ../addArticle.php with parametr ‘link’ which is that page he was reading.

    #141201

    ex20
    Member

    a href=”http://dev.tribine.lv/addArticle.php?link=xxx”
    img src=http://dev.tribine.lv/img/add_tribine.gif border=0
    /a

    #141202

    cornell
    Member

    Ex20 – you need to be asking at http://www.wordpress.org, we can’t help you.

The topic ‘get current url’ is closed to new replies.