- This topic has 3 replies, 2 voices, and was last updated 1 year, 6 months ago by .
Hi everyone @Metabox.io,
I'm trying to use rwmb_get_registry() to get all the id of my differents meta_boxes in a network context. But all i can print is the array of blog_id 1, not the second one (that uses a different themes)
My metabox AIO is up to date, and i call various meta boxes from php files
<?php require_once('../../../../../../../../wp-load.php'); switch_to_blog(2); $theme = wp_get_theme(); print_r($theme->name);//good theme name so i'm sure i've switch $meta_box_registry = rwmb_get_registry('meta_box'); $meta_boxes = $meta_box_registry->all(); print_r($meta_boxes);//print metaboxes array from blog_id 1
Any clues ?
Thanks for your help
- You must be logged in to reply to this topic.