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 6039093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:19:05+00:00 2026-05-23T06:19:05+00:00

I have a wordpress site. I have a twitter button below every post. What

  • 0

I have a wordpress site. I have a twitter button below every post. What I want is that when a user clicks on it, it should update their twitter status to the following:

the_title().urlencode(get_permalink())
[first the title of the post on which the user clicked the twitter button followed by the url of the post]

mow my problem is that the output from urlencode(get_permalink()) is very large and in the twitter status it displays just plain text not the hyperlink as is expected. Somewhere i read about tiny url. But what should be the code to pass my url to tiny url and get the shortened version of it so that the hyperlink is active in my twitter status.

Thanks in advance!

  • 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-23T06:19:06+00:00Added an answer on May 23, 2026 at 6:19 am

    I found the solution. Thanks if you spent time to view this. Thought to post the answer just in case anyone else faces similar situation

    function get_tiny_url($url) { 
        $ch = curl_init();
        $timeout = 5;
        curl_setopt($ch,CURLOPT_URL,'tinyurl.com/api-create.php?url='.$url);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
        curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch);
        curl_close($ch);
        return $data;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wordpress site, i added like button for share post. But, i don't
Alright, I have a wordpress site, that I want to have a clientportal built
I have a wordpress site with like buttons that are generated for each post
On a Wordpress site, I have both a normal blog that I want Google
I have a wordpress site with 5k post and each post has average 25
I have a WordPress installation on my site, and I want to display WP
i have a wordpress blog and want to give people the same user experience
I have a wordpress site that i've been working on that has some pages
I want to have lightbox gallery in my Wordpress site.. How do i do
I have a Wordpress site which has post ratings stored in the wp_ratings table,

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.