271 reputation
512
bio website steffirakotozafy.com
location Paris, France
age
visits member for 4 years
seen 2 days ago

Jan
12
comment How to do some action weekly?
Yep, in any case I'm sure I didn't write get_cat_ID('Photos') :p
Jan
12
comment How to do some action weekly?
It's really weird. It deletes me the wrong category lol. I have multiple categories on the post "Photos, News, Red" but it removes Photos. I don't know why... (By the way, the cron works fine)
Jan
12
comment How to do some action weekly?
Huh !!! Yes, you're right ! Totally right. Otherwise $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = $post_id AND term_taxonomy_id = $category_id" ) doesn't work, I had to add "%d" and "%d" to get this : $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id = %d", $post_id, $category_id )
Jan
12
comment How to do some action weekly?
Huh... So the hook is fired for each post ? At the same time when I publish the post, right ? It's also good. However, my approach was to get all posts with the category News and fires the hook after 7 days (only one event per week). In your case, if I created 12 posts, I will get 12 schedule event ?
Jan
11
comment How to do some action weekly?
I have a question : Why do you add_action with publish_post ? I don't understand this point.
Jan
11
accepted How to do some action weekly?
Jan
11
comment How to do some action weekly?
Looks good... Looks amazing ! Thank you @OriginalEXE :D
Jan
11
revised How to do some action weekly?
added 6 characters in body; edited title
Jan
11
comment How to do some action weekly?
I don't want to delete post, and I want to delete the category "News" of the post.
Jan
11
asked How to do some action weekly?
Oct
17
awarded  Popular Question
Sep
27
awarded  Popular Question
Sep
21
accepted Rewrite category wordpress
Sep
21
comment Rewrite category wordpress
PERFECT !!! You are amazing.
Sep
21
asked Rewrite category wordpress
Sep
20
awarded  Yearling
Jun
16
comment How to order posts tag by tag?
Ok, you suggest to create two queries. One for tag portrait and tag paysage. But what about the pagination. The only reason why I want to use only one query is the pagination. With two queries i'll get two paginations on my page.
Jun
16
revised How to order posts tag by tag?
edited body
Jun
15
revised How to order posts tag by tag?
edited title
Jun
15
asked How to order posts tag by tag?