Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is there any way, to get the current blog id in a Tinymce Dialog Window? Currently I only get the id, from the main blog. This is my current code:

$wp_load = "wp-load.php";
while(!file_exists($wp_load)) {
$wp_load = '../' . $wp_load;
if(file_exists($wp_load)){
    break;
}
}
require_once($wp_load);
global $blog_id;
echo $blog_id;
$blog = get_blog_details($blog_id);

Any help is welcome.

Lars

share|improve this question
add comment

1 Answer

Try this:

global $current_blog;
$blog = get_blog_details($current_blog->blog_id);
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.