433 reputation
1316
bio website
location
age
visits member for 3 years, 10 months
seen Aug 26 at 10:50

Aug
24
comment I cannot make this position properly in Wordpress
<p>text</p><p><img src=""/></p><p>text</p><p><img src=""/></p> all done in text editor not in html editor
Aug
19
asked How to store a file on serverside with Contact Form 7
Aug
19
accepted Which delete query is better with prepare or delete
Aug
19
accepted How to dequeue css files?
Aug
19
accepted How to use wp_nav_menu with hashtag links?
Aug
19
accepted WPSC how do i output product per category on one page (wpsc-product-page)
Aug
19
accepted A truely custom login page?
Aug
19
accepted Should I use add_action('publish_post or add_filter('publish_post?
Aug
1
awarded  Popular Question
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