Multisite in subfolder – How to make new sites to be in same level subfolders as the main site

After these years I hope this will still answer your question… I think I’ve got the situation working you want. Allthough I don’t have the WordPress installation in ‘/subfolder/’, but I’ve a installation ‘in subdirectory’ per language, and on the same level: my-domain.com/nl/ -> this is primary installation, site id = 1 my-domain.com/en/ -> this … Read more

Set default avatar network-wide

The avatar_default is the better option. add_filter(‘pre_option_avatar_default’, ‘se72578_avatar_default’); function se72578_avatar_default( $option ){ return ‘http://example.com/your/default/here.jpg’; } Simple. Stick that in a mu-plugin and you’re good to go. Edit: If you want to still allow site owners to change the default avatar, use the default_option_avatar_default hook instead.

WP Multisite – multilanguage – swich to other language by click, but “same” content

For anyone stumbling over this question when looking up information on multilingual multisite instances: WPML (WordPress Multilingual Plugin) supports what OP was looking for by “linking” posts and pages in the backend across all languages. If a post/page is linked to all other language variations, you are able to switch between the different languages of … Read more

Post and Page Inheritance to subsites in a WordPress Network

R, the simple solution is to create a 2 post-meta. The first is “Blog id” The second is “Post id” and you use $blog_id = get_post_custom_values(‘blog_id’); $post_id = get_post_custom_values(‘post_id’); if( !empty( $blog_id ) ) switch_to_blog( $blog_id ); $query = new WP_Query( array( ‘p’ => $post_id )); if( $query->have_posts() ){ while( $query->have_post() ){ $query->the_post(); } } … Read more

Give to site admin the option to “skip confirmation email” when adding new user

Paste this in your functions.php file: function my_skip_confirmation_email() { if ( is_multisite() && current_user_can( ‘create_users’ ) ) { ?> <table class=”form-table”> <tr> <th scope=”row”><?php _e( ‘Skip Confirmation Email’ ); ?></th> <td> <input type=”checkbox” name=”noconfirmation” id=”noconfirmation” value=”1″ /> <label for=”noconfirmation”><?php _e( ‘Add the user without sending an email that requires their confirmation.’ ); ?></label> </td> </tr> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)