Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 347735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:17:54+00:00 2026-05-12T11:17:54+00:00

In my WordPress Blog I’m currently using an integrated http://U.nu url-shortener. For this I’ve

  • 0

In my WordPress Blog I’m currently using an integrated http://U.nu url-shortener.

For this I’ve got in functions.php

function getunuUrl($url) {
    $unuurl = file_get_contents("http://u.nu/unu-api-simple?url=".$url);
    return $unuurl;
}

and in my post.php

<?php $uurl = getunuUrl(get_permalink($post->ID)); 
echo '<a href="'.$uurl.'">Short Url</a>' ?>

I can’t find a way to integrate j.mp the same way. Anyone able to help me out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:17:55+00:00Added an answer on May 12, 2026 at 11:17 am

    Looks like j.mp is a mirror of bit.ly
    According to bitly API:

    http://api.bit.ly/shorten?version=2.0.1&longUrl=http://cnn.com&login=bitlyapidemo&apiKey=R_0da49e0a9118ff35f52f629d2d71bf07
    

    I shoul change function getunuUrl (or add a new one):

    function getunuUrl($url) {
        $unuurl = file_get_contents("http://api.bit.ly/shorten?version=2.0.1&longUrl=".$url."&login=bitlyapidemo&apiKey=R_0da49e0a9118ff35f52f629d2d71bf07");
        return $unuurl;
    }

    Don’t forget to change login & apiKey to your own.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this wordpress blog that has many pages with subpages that dropdown on
I have a Wordpress blog at http://themes.visualise.ca/visualise and when a user clicks on a
I am maintaining a wordpress blog and am familiar with using the og:image meta
A WordPress blog can be reached with mod_rewrite at http://xyz.de . In the future
I have my wordpress blog at www.mysite.com , also I have my own php
I created a Wordpress blog on http://staging.mydomain.com and now that the website is ready
My wordpress blog is having issues with syntax highlighter evolved plugin, and there's this
So in a wordpress blog using prettylinkpro plugin, I found a link to the
I created a wordpress blog (http://raptor.hk), but i am unable to set the right
I currently have a wordpress blog: www.androidfunandmore.info and I was wondering how do I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.