409 reputation
1315
bio website
location
age
visits member for 3 years, 7 months
seen yesterday

May
18
accepted How do I add a value to a wp_options option that is an array?
Apr
25
awarded  Self-Learner
Mar
12
awarded  Popular Question
Mar
2
awarded  Yearling
Feb
18
comment How to Add Custom Fields to a Custom Post Type?
"why is prefix_teammembers_save_post triggered by add new?" have you found an answer, i am also stumbling on a extra function trigger which i can't recall?
Feb
17
comment Should I use add_action('publish_post or add_filter('publish_post?
hmmm, add_action('save_my-custom-products doesn't trigger the function but add_action('publish_my-custom-products does, but not getting the custom fields ofcourse
Feb
17
comment Should I use add_action('publish_post or add_filter('publish_post?
pieter, ah i think i see and i need to save_{$post_type} as i need the custom field value for further reference. Tx again.
Feb
17
comment Should I use add_action('publish_post or add_filter('publish_post?
Tx again, i see the triggers are working but $custom_meta = get_post_meta($post->ID); seems to be empty. How can i fix this? Are the custom fields not yet attached?? i am using advanced custom fields (wordpress.org/plugins/advanced-custom-fields)
Feb
16
comment Should I use add_action('publish_post or add_filter('publish_post?
hi pieter, i am trying your first suggestion and i am getting an WordPress database error: [Duplicate entry 'xxx' for key 'product_code'] each time. So i echoed some variables and i think $custom_meta = get_post_meta($post_id); is empty. Now i have rewritten it by get_post_meta($post->ID); but only on refresh i see data but a duplicat key. your second suggestion is just for new posts(inserts) and doesn't apply for edit/updates, right?
Feb
15
comment Should I use add_action('publish_post or add_filter('publish_post?
@birgire wow never looked into the add_action function, that indeed is suprising. Thanks for the class_exists suggestion!
Feb
15
comment Should I use add_action('publish_post or add_filter('publish_post?
Going to try both your suggestion tx a lot
Feb
15
revised Should I use add_action('publish_post or add_filter('publish_post?
added 23 characters in body
Feb
15
asked Should I use add_action('publish_post or add_filter('publish_post?
Jan
21
accepted How to handle text with function __(?
Jan
9
comment How to handle text with function __(?
Thank you Rarst, i am going to use large strings then. BTW i notice something strange which to me 1 hour to notice. POedit doesn't seem to like characters: é, because i get an error. Replacing the é with just a regular e i can update the poedit file again and go translate. Does this sound familar with POedit?
Jan
7
asked How to handle text with function __(?
Nov
25
revised Includin WP outside the loop but not all function are working, why?
edited body
Nov
25
asked Includin WP outside the loop but not all function are working, why?
Nov
14
comment How do I add a value to a wp_options option that is an array?
hmm, nevermind my code seemed to work after restart tx have a nice weekend
Nov
14
comment How do I add a value to a wp_options option that is an array?
hi ialocin, i tried the following i just can't get the update_option $valid_input = get_option( 'extra_columns' ); $input = array('notes'); //exttra option field $valid_input = array_merge( $valid_input, $input ); print_r($valid_input);//seems to be added update_option( 'extra_columns', $valid_input )//not working