357 reputation
110
bio website
location
age
visits member for 1 year, 10 months
seen Sep 28 '13 at 22:39

Sep
28
awarded  Yearling
Jun
15
awarded  Benefactor
Jun
15
accepted How to add a section to the menus configuration, offering hard coded items?
Jun
15
comment How to add a section to the menus configuration, offering hard coded items?
Alrighty then, looks like I've got everything to get it working... thanks for your help :)
Jun
14
comment How to add a section to the menus configuration, offering hard coded items?
Thanks for your detailed answer. I had another, closer look at wp_update_nav_menu_item, and finally understood that it doesn't necessarily adds items to the menu immediately, and looking at your code it's all less complicated than I thought. However there's one thing I'm not sure about, are there any known problems when linking menu-items to non-existent post-types/posts? One glitch I've noticed is that nothing is shown for the Original label, that's not crucial, but of course it would be nice if the user could still see what type of item it is after changing the Navigation Label.
Jun
14
awarded  Promoter
Jun
13
awarded  Student
Jun
13
awarded  Informed
Jun
12
comment Random element in get_post_meta array
Yep, sorry, I forgot to change the $single parameter in the get_post_meta() call. I've updated the code in my answer.
Jun
12
revised Random element in get_post_meta array
updated code to make get_post_meta return a single value
Jun
12
answered Random element in get_post_meta array
Jun
12
comment Random element in get_post_meta array
I'm still not sure about the actual data type stored in your meta data, your showing a string but you're talking about the option containing an array? If it's a string then I can tell you what the problem probably is, if it's an array then you'll need to do some additional debugging.
Jun
12
comment Random element in get_post_meta array
What do you mean by "a list of comma separated colors"? A string of comma separated values? Or do you actually store an array in the option? Also what exactly do the variables $theColor, and $theWeight contain? Try var_dump(compact('theColor', 'theWeight'));
Jun
12
revised wpdb->get_row() / get_results - is it possible to return an object instances of my own class?
added example code for populating custom classes
Jun
12
answered wpdb->get_row() / get_results - is it possible to return an object instances of my own class?
Jun
12
asked How to add a section to the menus configuration, offering hard coded items?
Jun
6
awarded  Scholar
Jun
6
accepted When to use the Filesystem API? Should I use it at all?
Jun
6
comment When to use the Filesystem API? Should I use it at all?
Of course, if it were just for me I wouldn't care at all, my servers are set up corretly so that there won't be any ownership issues :) This is just for plugins/themes that I'm going to publish publicly. Thanks for your input.
Jun
6
comment When to use the Filesystem API? Should I use it at all?
After reading this and this ticket comment, I think I finally understood the intention of the whole thing. So I guess one could say FTP usage is only for edge cases, and I should try using the Filesystem API in the admin space whenever possible, and otherwise there's not much need to care about?