WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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;
global $blog_id;
echo $blog_id;
$blog = get_blog_details($blog_id);

Any help is welcome.


share|improve this question

Try this:

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

Your Answer


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.