WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a series of share buttons, each one using a short URL (using Ozh's Yourls plugin) and a page title (as found on urlencoding of the_title() doesn't work?) and some require a description. How do I put the blog description, encoded correctly, into my URL?

share|improve this question
Perhaps you could show us a screenshot, or some code? – Zach Lysobey Oct 15 '11 at 18:03
up vote 1 down vote accepted
echo urlencode(get_bloginfo('description'));
share|improve this answer
That answered my question perfectly, thank you :) – Nathan Bunn Oct 16 '11 at 19:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.