Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 L Oct 15 '11 at 18:03
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.