370 reputation
1213
bio website
location
age
visits member for 3 years, 1 month
seen 16 hours ago

Dec
12
comment Creating a custom theme; translate doesn't work?
Tx pieter, for your time and solutions. but still no luck. I also tried after_setup_theme, wp_head
Dec
12
comment Creating a custom theme; translate doesn't work?
yes, you are right. How can i fix this? i have tried function dep_inc_config(){ include('includes/config.php'); } add_action('init','dep_inc_config');
Dec
12
comment Creating a custom theme; translate doesn't work?
@PieterGoosen i noticed my setup works when i put the _e('Profiel', 'dep'); in the header. But in my theme setup i have a config.php with all the __(); declarations and have it included in functions.php. This however doesn't seem to work. i have set Text Domain: dep you are right about echo __(
Dec
12
asked Creating a custom theme; translate doesn't work?
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
Nov
14
asked How do I add a value to a wp_options option that is an array?
Nov
14
comment How to toggle delete/update user meta values?
tryint to simplify my issue. Is this logic correct? $meta_fields_from_post = array('c','x','y','z'); $meta_fields_stored = array('a','b','x','y','z'); $fields_filtered_to_delete = array_diff( $meta_fields_from_post, $meta_fields_stored);
Nov
14
comment How to toggle delete/update user meta values?
@AndrewBartel, i realise i need to use delete_user_meta but i am having trouble with the logic. In my case for example an user has selected input fields a b x y and z. And the next day he selects input fields c x y z, hence he deselects a and b. So how do i setup the logic to delete_user_meta and update_user_meta? regards
Nov
14
asked How to toggle delete/update user meta values?
Nov
12
asked How to hook add_action('user_register', 'my_functon') only when manually adding?
Nov
6
comment Use a filter from a class function?
Ok i think i found a solution. It works but i don't really get it. Mainly return self::$_this; and then rewrite the add_filter like add_filter('wp_handle_upload_prefilter', array( $this, 'custom_upload_filter' ) ); hardcorewp.com/2012/…
Nov
6
asked Use a filter from a class function?
Oct
8
comment Translating my custom theme, always translated version?
i think i got it now. Do you know how i can set mydomain.com/en/ to set locale WP to use en_US?
Oct
8
accepted Translating my custom theme, always translated version?
Oct
8
comment Translating my custom theme, always translated version?
hmm i don't get it. Let me explain in the original theme there are Dutch string like "Gemaakt door", which i replaced with __('Gemaakt door', 'my-theme'). Now with poedit i translate the dutch strong to english "Made by" and saved the file as en_US.mo/en_US.po. Should i saved it asl nl_NL.mo? I am a bit confused as normally it's english translate too another language. regards
Oct
8
asked Translating my custom theme, always translated version?
Oct
7
comment How to pass variables with get_template_part?
i don't use globals with the include version. At the moment i am trying github.com/Smartik89/SMK-Theme-View/blob/master/functions.php which looks ok. It wraps the load_template function in another function. But it adds more code?