Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    Unhappy WordPress Short URL - Help me, please!!


    # I want to make "wordpress short url" in post using linkopen.net API - You can read the API from here: http://linkopen.net/api.html

    To generate a url via the API, send a POST or GET request to the site in the following format:

    - http://linkopen.net/index.php?api=1&return_url_text=1&longUrl={URL}

    Above URL automatic generate this URL: http://linkopen.net/46

    # I put below code in my POST theme for automatic generate code:
    http://linkopen.net/index.php?api=1&return_url_text=1&longUrl=<?php the_permalink() ?>

    but the code dont generate SHORT URL, the result like this:
    - http://linkopen.net/index.php?api=1&return_url_text=1&longUrl=http://www.site.com/2012/1/post-title.html

    # My question is: How to convert url automatic in my post using API from linkopen.net ???

    Please helpe me!
    Last edited by v123shine; 01-18-2012 at 01:35 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts