5,695 reputation
11236
bio website markratledge.com
location Missoula, MT
age
visits member for 4 years, 3 months
seen 2 hours ago

Jan
16
answered Possible to have one template call different sidebars for different pages?
Jan
15
accepted Twenty Eleven unregister all default sidebars?
Jan
13
revised Programatically add a page in Wordpress
fixed title
Jan
13
suggested suggested edit on Programatically add a page in Wordpress
Jan
13
answered Programatically add a page in Wordpress
Jan
12
answered Twenty Eleven unregister all default sidebars?
Jan
12
asked Twenty Eleven unregister all default sidebars?
Jan
4
answered Direct some posts to only appear on a specific page
Dec
29
comment Display the last date, regardless of articles
If this is a crosspost with the same question on serverfault, reference any help from there. And if this isn't for WordPress, is belongs on serverfault or stackoverfow.
Dec
29
answered Newlines in Wordpress.com blog?
Dec
28
answered Add posts from other Wordpress blog to the current one
Dec
24
accepted How to check an array of $curauth fields?
Dec
24
comment How to check an array of $curauth fields?
Thanks, that works. I already call the $curauth variable. I wasn't formatting the array the right way. But the code can be simplified a little as noted in my update to my question.
Dec
24
revised How to check an array of $curauth fields?
update
Dec
24
asked How to check an array of $curauth fields?
Dec
24
answered Different number of posts on the front page
Dec
23
comment How do I use “if field exists” with $curauth?
Ah, good point. Works fine now.
Dec
23
revised How do I use “if field exists” with $curauth?
update
Dec
23
accepted How do I use “if field exists” with $curauth?
Dec
23
comment How do I use “if field exists” with $curauth?
Your edit works better, but as per Otto above, it needs the !empty operator, i.e. : <?php if ( !empty( $curauth->twitter ) ) { echo '<a href=" ' . $curauth->twitter . '"><img src="' . get_bloginfo('template_url') . '/images/twitter.png"></a>'; } ?>