238 reputation
313
bio website
location Turkey
age 21
visits member for 3 years, 1 month
seen Apr 11 at 11:19

Jan
17
comment Setting a post's category
OK i got it , 3th argument is taxonomy so it should be galleries :) wp_set_object_terms($postid, $categoryid, $taxonomy)'s mean is add this post to this category ($categoryid) which in $taxonomy taxonomy :) If you update your answer, i'll accept it.
Jan
17
comment Setting a post's category
i'll add my post to Custom Category (slug:customcategory) category. This category in galleries taxonomy
Jan
17
comment Setting a post's category
not working : wp_set_object_terms( $insert_post, intval( $id ), 'customcategory'); or wp_set_object_terms( $insert_post, intval( $id ), 'Custom Category');
Jan
17
comment Setting a post's category
wp_set_object_terms' first argument is $insert? or $insert_post ?
Jan
17
comment Setting a post's category
Yes. I've tried array(intval($id))
Jan
17
comment Setting a post's category
@imHavoc , it's printing right ID . There isn't any problem .
Jan
17
revised Setting a post's category
added 82 characters in body
Jan
17
asked Setting a post's category
Jan
10
awarded  Announcer
Jan
9
comment save_post action doesn't passing post id to my function as argument
yes, up voted..
Jan
9
accepted Getting Different Size Of Attachment Images
Jan
8
comment Print_r displaying two different post->ID if placed in sidebar or single.php
Can you check museidibra.it/prova/?p=59 and museidibra.it/prova/?p=93 are same page ?
Jan
8
asked Getting Different Size Of Attachment Images
Jan
8
comment save_post action doesn't passing post id to my function as argument
NO you misunderstood. I down voted you and now i can't change my vote to up, if you don't edit your answer. I'm getting : Your vote is now locked in unless this answer is edited error . So, please edit your answer, for example just add a new blank line to your answer :)
Jan
8
comment save_post action doesn't passing post id to my function as argument
I vote down, because i'm trying die($post_id . " error"); and still getting error. I'll try it again. I'll clear downvote if you edit answer.
Jan
7
comment save_post action doesn't passing post id to my function as argument
die()'s parameter will be printed to page : codepad.viper-7.com/tA5Zsn
Jan
7
awarded  Critic
Jan
7
asked save_post action doesn't passing post id to my function as argument
Dec
14
revised Update some database fields when post is saved
added 2 characters in body
Dec
14
answered Update some database fields when post is saved