New answers tagged


You need to check if the siteurl differs from the home URL: if ( get_option( 'siteurl' ) !== get_option( 'home' ) ) { // whatever This also works if home is a subdirectory of the root, with WordPress installed in yet another subdirectory. For example: (URL) and (siteurl).


If your setup is the same every time (subdomain install), then you may be able to paste the entire chunk in your first step: define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); define( 'DOMAIN_CURRENT_SITE', $_SERVER[ 'HTTP_HOST' ] ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', true ); define( 'BLOG_ID_CURRENT_SITE', ...


403 forbidden means that your browser isn't able to load the scripts up because your server isn't allowing it. This is a hard one to solve because anything could be blocking the server: - Most likely this is a server permissions/ownership issue, so ask your host what's going on - check your .htaccess files for anything strange. - try a full Manual ...


So, the actual problem was that I wasn't setting any defaults my custom widget needed to display any content. The widget actually was there, but as I had emptied the title and set no other defaults, it was rendering nothing. My fix for this was two-fold. 1) set at least one default in my install.php file update_option( 'widget_vvnumetawidget', array ( 2 ...

Top 50 recent answers are included