Reputation
222
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 11
Newest
 Yearling
Impact
~7k people reached

Sep
22
awarded  Yearling
Sep
18
awarded  Curious
Sep
17
revised Hourly scheduled wp_cron job keeps getting rescheduled
added 8 characters in body
Sep
17
revised Hourly scheduled wp_cron job keeps getting rescheduled
added 1250 characters in body
Sep
17
answered Hourly scheduled wp_cron job keeps getting rescheduled
Sep
17
comment Managing scheduled tasks
Did anyone figure out why it doesn't work on Multisite?
Sep
17
revised Hourly scheduled wp_cron job keeps getting rescheduled
deleted 11 characters in body
Sep
17
asked Hourly scheduled wp_cron job keeps getting rescheduled
Jul
22
comment Multisite switch to blog
I nest my switch_to_blog calls and call this at the end. switch_to_blog(1); unset($GLOBALS['_wp_switched_stack']); $GLOBALS['switched'] = false; I found the code somewhere on SE and I haven't been having any problems with this.
Jul
21
comment the_post() within switch_to_blog() altering my excerpt
do you have your code hooked in an action?
Jul
1
comment restore_current_blog() vs switch_to_blog()
@toscho that's what I thought, but I had set a variable higher up on the page called $blog_id = 2 and it messed up my loop and caused get_current_blog_id to return 2 instead of 1 (when I was on 1). I fixed it by changing my $blog_id to $blogID. The only reason I knew to do this was because I used to loop through a list foreach($post as $blog_id => $v) and sending $blog_id into switch_to_blog() doesn't work either.
Jul
1
comment restore_current_blog() vs switch_to_blog()
advice related to this that messes up blog ID..... NEVER call a variable $blog_id or you will mess up everything!
Jun
30
comment Update post meta using save_post hook in multisite
did you ever find a solution? I am having the same problem and have tried many different actions. It's completely ignoring it.
Apr
13
accepted wp_update_term not creating new unique slug
Apr
13
comment wp_update_term not creating new unique slug
So after some testing, it does indeed look like using 'slug' => '' will call upon wp_unique_term_slug. I appreciate the long and thoughtful answer!
Apr
10
comment wp_update_term not creating new unique slug
what if said slug already exists? Does sanitize_title check that? ( aka I would prefer if it adds a 2 ). Also, what would happen if I passed a blank slug in? I will try this when I get a chance, thank you!
Apr
9
asked wp_update_term not creating new unique slug
Feb
6
accepted WP_Query - using category__and when one of the categories is 0
Feb
6
comment WP_Query - using category__and when one of the categories is 0
Wow, thank you.
Feb
5
comment WP_Query - using category__and when one of the categories is 0
Yup, only ever 2. The problem though is $cat could technically be "1,2,3,5,6" so I would need to check it's properties and split into an array. This is sidetracking from the actual issue above though, which your solution does like solve. I feel bad that I may never test it because it currently works, but I know that when updates come I'll have to try this.