Default sub-pages on WordPress Multisite

wp_insert_post() returns a post ID for the fresh post. You can use that ID to set a parent post. Example $about_id = wp_insert_post( array ( ‘post_title’ => ‘About’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’, ) ); wp_insert_post( array ( ‘post_title’ => ‘Information’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’, ‘post_parent’ => $about_id, ) ); In your … Read more

How to link two news page multilingual press

I am the author of Multilingual Press. Currently, there is no user interface to connect existing posts. This will be possible in one of the next versions. You can either connect both in the table $wpdb->base_prefix . ‘multilingual_linked’ or create a new post as the translation for the other.

Install WordPress MU outside htdocs

WordPress expects certain directory structure. Now, there are some constants available that you could change in you wp-config.php and it should work, in theory anyway. The thing is that many plugins expect the default directory structure (and names) and will break if you change this. I have never tried to do what you propose, my … Read more

Is there any way to give all users access to one blog in a multisite network without using a plugin?

You could filter get_blogs_of_user and add this particular blog to the returned list. Pseudo-code, not tested: add_filter( ‘get_blogs_of_user’, ‘add_special_blog’, 10, 3 ); function add_special_blog( $blogs, $user_id, $all ) { $new_blog = get_blog_details( $special_blog_id ); $blogs[ $special_blog_id ] = (object) array( ‘userblog_id’ => $special_blog_id, ‘blogname’ => $new_blog->blogname, ‘domain’ => $new_blog->domain, ‘path’ => $new_blog->path, ‘site_id’ => $new_blog->site_id, … Read more