WordPress Multisite: Set template languages for a domain?
You need the Swedish language pack, and then you need to pick Swedish from that user’s profile on that blog. http://wpmututorials.com/how-to/localization/ The latter half of this post.
You need the Swedish language pack, and then you need to pick Swedish from that user’s profile on that blog. http://wpmututorials.com/how-to/localization/ The latter half of this post.
Turns out that the function above actually works fine. The issue is that the plugin (Simple Terms Meta) doesn’t create tables for each site, only the main site. I’ve managed to modify the plugin so that when it’s activated it now creates a table for each site and it appears to be working fine and … Read more
yup it is fast, it would be even better for you to use the WP Transients API to cache your query for a short period. Basically: if($saved = get_site_transient(‘SOME_SORT_OF_ID’)){ echo $saved; } else { ob_start(); switch_to_blog(x); // x being the blog id your want to switch to // Do your quering and echoing here restore_current_blog(); … Read more
Check your httpd.conf file. Sometimes Apache’s settings can be too restrictive and it doesn’t quite catch all the rewrite rules. Look for Allow FileInfo Options for that vhost. Might have to set it to All. I explain this here: http://wpmututorials.com/installation2/subfolder-blog-have-no-theme-styles/
You can go directly to the database via $wpdb. <?php $wpdb->get_results( “SELECT * FROM $wpdb->blogs WHERE archived = 1” ); Or wrapped up in a function: <?php function wpse34731_get_archived_blogs() { global $wpdb; if( empty( $wpdb ) ) return; $blogs = $wpdb->get_results( “SELECT * FROM $wpdb->blogs WHERE archived = 1” ); return $blogs; }
What’s worked for me in this situation is to use the Gravity Forms plugin with the User Registration Add on. This allows me to create a form for my users to sign up for a sub-site, and allows them to set their user name and password. The plugin also allows me to tie the signups … Read more
You could use this WordPress function within your form code: http://codex.wordpress.org/Function_Reference/wpmu_create_blog With this and a custom template you can allow any user to create a blog for himself (For some sample code you could see how wordpress itself does it on wp-signup.php on WordPress root dir)
I’ve finally found the answer. Yes WP was ‘triggered’ to think it was evaluating a WordPress and not a WordPress-MU table structure. This was caused by the following lines: define(‘WP_ALLOW_MULTISITE’, true); define( ‘MULTISITE’, true ); in the wp-config.php that should NOT be there in a WordPress-MU 2.9.2 installation (but that some former developer had tossed … Read more
I found my mistake…I change wp-config.php adding lines at the end, insetead of add them before /* That’s all, stop editing! Happy blogging. */ Thank you for your help!
On your site’s configuration file, please put the following code… client_max_body_size 16M; Please change the number 16M to any other value that suits your theme size. By default it is 2M (short for 2MB).