CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Allowing HTML tags in the site description in WordPress
GreyFox135
Permalink to comment
#
February 2011
Okay, I feel like an idiot. I had found a way to do this once before, but forgot to make a note.
Now I'm trying to add a
tag in my site's description, but forgot how.
I tried google, but am having no luck. Does anyone know off the top of their heads?
TheDoc
Permalink to comment
#
February 2011
Funny, I've actually attempted this before and never actually found a solution! If you find one please let me know!
Just found this, but haven't tested it yet:
http://sillybean.net/2010/02/preserving-html/
So perhaps for site description it needs to be pre_site_description?
GreyFox135
Permalink to comment
#
February 2011
It's definitely possible, I just have to find it. I'll update if no one knows and I find it.
GreyFox135
Permalink to comment
#
February 2011
HA! found it:
echo html_entity_decode(get_bloginfo('description'));
Just write that instead of this:
bloginfo('description');
Enjoy :)
TheDoc
Permalink to comment
#
February 2011
Nice one!
Add a Comment
Now I'm trying to add a tag in my site's description, but forgot how.
I tried google, but am having no luck. Does anyone know off the top of their heads?
Just found this, but haven't tested it yet:
http://sillybean.net/2010/02/preserving-html/
So perhaps for site description it needs to be pre_site_description?
Just write that instead of this:
Enjoy :)