urlencode issue, not translating to Twitter (or anywhere)
-
I’m using a simple TweetThis link with the_permalink and the_title and encoding both, but the output is still getting messed up.
Here’s the code:
<a href="https://www.twitter.com/home?status=Reading:%20<?php urlencode(the_title()); ?>%20-%20<?php the_permalink(); ?>">TweetThis</a>
Here’s the output:
Reading:%20This%20Is%20A%20Sample%20Title%20to%20Display%20My%20Issue%20-%20https://myblogurl.com/this-is-a-sample-title-to-display-my-issue.html
What am I missing?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘urlencode issue, not translating to Twitter (or anywhere)’ is closed to new replies.