271 reputation
411
bio website steffirakotozafy.com
location Paris, France
age
visits member for 3 years, 7 months
seen Feb 28 at 23:54

Jan
24
comment How to change the default home page for the WordPress Dashboard?
Thanks, it works great.
Jan
17
comment How to order posts of a custom post type by date DESC in dashboard Admin?
Okay, thanks Pontus ! I'll try this. But why is this not set by default ? Because for "Posts" is already set by "orderby DESC"
Jan
17
comment How to order posts of a custom post type by date DESC in dashboard Admin?
Oh sorry, I would like to add the order_by in the Wordpress Admin
Jan
12
comment How to do some action weekly?
I think $wpdb must be $wpdb->prefix because in my database it's not "wp_" but "wp_new"
Jan
12
comment How to do some action weekly?
It seems your query doesn't work. I try something else. Check my answer.
Jan
12
comment How to do some action weekly?
Nothing happened... :/
Jan
12
comment How to do some action weekly?
:o It doesn't work ! Even with id directly... It awalays removes Photos instead of News (For information, Photos is the category by default, maybe it's the problem ?)
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
comment How to do some action weekly?
Looks good... Looks amazing ! Thank you @OriginalEXE :D
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.
Sep
21
comment Rewrite category wordpress
PERFECT !!! You are amazing.
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.
May
14
comment How to get posts published between a date and today?
Ok, thank you very much ! You rock. ;)
May
14
comment How to get posts published between a date and today?
Thank you @moraleida ! Amazing ! Just one thing. You said : "Avoid using query_posts." But it is better to use query_posts() in templates files (such as home.php) than new WP_Query(), no ?
May
14
comment How to get posts published between a date and today?
Ok ! So the filter is now in $query_string. But how it works with my args in Query_Posts ? (Check my edit @Moraleida)
Jan
3
comment Adding Pagination on a Custom Author Page
THANK YOU VERY MUCH @VicePrez