• i am unable to load specific blog in wpmu

    require_once '../wp-load.php';
    
    switch_to_blog(3);
    
    do_action('init');
    
    echo "<pre>";
    print_r(get_post_types());
    echo "</pre>";
    
    var_dump(taxonomy_exists('biot_news_cat'));

    Actually i am making a Cron and in which i want to use the WP Functions
    so using wp-load.php i am done that but i have define some custom post type and taxonomies in my functions.php file which are not getting load during this operation

    and due to that when i am trying to insert new post with taxonomy it gives me invalid taxonomy error

The topic ‘Loading Specific Blog in WPMU’ is closed to new replies.