5,722 reputation
11237
bio website markratledge.com
location Missoula, MT
age
visits member for 4 years, 4 months
seen 9 hours ago

Jan
26
comment Facebook like button not showing up in iframe
You create the APP in the account you want to access with the plugin and want to "Like", not your own. Follow the instructions that the plugin itself will give you.
Jan
20
comment When at / ( or “home”) my menu doesn't get a current-menu-item class
He's using wp_nav_menu, not wp_list_pages
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
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
23
comment How do I use “if field exists” with $curauth?
Ah, good point. Works fine now.
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>'; } ?>
Dec
23
comment How do I use “if field exists” with $curauth?
Hmm.... No luck with that. No errors, either.
Dec
23
comment How to determine if an admin is logged in outside the loop
Thanks, this is the simplest way to do it.
Dec
23
comment How to disable 3.3 Tooltips?
Thanks! I had to give the answer to t31os for a more complete answer. But the php function to write to the database is helpful and I will look into that more.
Dec
23
comment How to disable 3.3 Tooltips?
Thanks, Mark. Interesting about the dependencies class; didn't know that. These things get more interesting the farther I get into them. I plan on leaving the tooltips in for beginning users, but I want to add the remove functions to several basic dev theme frameworks I use, at least for me, usually ID #1 user.
Nov
16
comment Error on Include php:/usr/share/pear
Thanks, I'm not the original plugin author; I'm just trying to get it to work. I do have a 404 and permalinks are on. The plugin will generate an e-card, but actually viewing the e-card URL is broken. The plugin is wordpress.org/extend/plugins/wp-ecards
Nov
13
comment How do I reset this wp_list_categories query?
You're right; I was looking at the wrong aspects of the query. I changed the second set of cat calls to $cat_left_1 and 2 and that worked. Thanks!
Oct
20
comment How to determine if an admin is logged in outside the loop
Thanks, but I'm not running multisite with subdomains, and it seems like overkill to set a new cookie. Is there a way to access the current logged in cookie?
Aug
11
comment What's the most efficient database method to add and query usermeta?
Both answers are good, but you were first. Thanks.
Aug
9
comment How do I change the web site summary in search results?
@pixeline, You're better off adding your comment to Tim's question above; he's looking for the plugin, not me.
Aug
8
comment Making a parent directory writable by the server
Under no circumstances should any WP directory be 777
Aug
7
comment How can i increase the login expiration length?
Interesting; I didn't realize it's the same case on my localhost; the cookie doesn't have an expire date. And this would work better in a plugin, anyway, rather than needing to be added to functions.php
Aug
3
comment Add a jQuery function to admin pages
Good points, I'll do this. And are you editing someone else named Mark Duncan, or a different account for yourself? :)
Jul
26
comment Add a new checkbox in theme options
That's possible, and there are lots of examples of basic theme option panels I could adapt, but I want to work with what already exists to keep from rewriting it all. Turned out to be a simple issue from moving the theme from wp.com to self-hosted.
Jul
25
comment Add a new checkbox in theme options
Ah, that worked! Must have to get_option first, then call it. Like you say, this seems to be the old way of handling theme options. Thanks for all the help! - Mark