List all sites in multisite
You can try to replace: ORDER BY registered DESC with: ORDER BY domain ASC, path ASC to get the sites in an alphabetical order.
You can try to replace: ORDER BY registered DESC with: ORDER BY domain ASC, path ASC to get the sites in an alphabetical order.
We also covered this in the wordpress.org forums. 🙂 the answer is no. Our sugestion was to make the main site a landing page and set up each year on their subdomains, just like the WordCamp.org site does now. “archiving” a site in multisite basically shuts it down. (See Network Admin -> Sites) so that’s … Read more
You’ll need to tie into template_redirect hook where you will check the site and the user and then redirect if needed. function redirect_to_subsite() { if( is_main_site() && !current_user_can(‘manage_network’) ) { $blog_id = 5; // <<—– Update the ID to the subsite blog ID you want to redirect to wp_redirect( get_site_url( $blog_id ) ); exit(); } … Read more
I had to write a little plugin to bypass the check – free to download and use. <?php /** * Plugin Name: Upgrade SSL Bypass * Description: The DB-Upgrade process for networks does not work if there’s an error with your SSL certificate. This plugin bypasses the check by disabling the verification in case of … Read more
You could hook into ‘pre_comment_approved’ and change its return value. Sample code, not tested: add_filter( ‘pre_comment_approved’, ‘wpse47172_approve_logged_in_users’ ); function wpse47172_approve_logged_in_users( $approved ) { return is_user_logged_in() ? 1 : $approved; }
WordPress can use subdomains only if they are linked to the same directory as the WordPress installation. Wrong – wp/ // WP installation – subdomains/ // wildcard subdomains Correct – wp/ // WP installation & wildcard subdomains
You’ve got some issues in your underlying objective … For example, I have a filed called 40c.jpg located at localhost/files/2011/07/40c.jpg OK, this makes sense and is where the image should be in the first place. I want the file to show up only when called by HTML on the local domain (here: localhost). So not … Read more
John James Jacoby, Lead developer of BuddyPress said this. BuddyPress sits on top of an entire WordPress installation, regardless of configuration. That means on single-site, multi-site, or multi-network installations, BuddyPress only has 1 set of data tables. As a result, you only have 1 set of Groups, Activity, Private Messages, Profiles, and Friends, even if … Read more
This will force uploads for all sites to the wp-content/uploads directory. Sub-directories (like year/month) will still exist (if the setting is enabled). /** * Force all network uploads to reside in “wp-content/uploads”, and by-pass * “files” URL rewrite for site-specific directories. * * @link http://wordpress.stackexchange.com/q/147750/1685 * * @param array $dirs * @return array */ function … Read more
Ok some wise guy deleted my last post. The answer, which the above member (@etc) gave to me on another forum, and is working quite fine, is as follows: # Rewrites for Bedrock Multi-Site Subdomain Setup rewrite /wp-admin$ $scheme://$host$uri/ last; rewrite ^/(wp-.*.php)$ /wp/$1 last; rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last; He revised his answer but did not … Read more