Child Theme activates, but nothing from parent theme displays (MAMP, Multisite)

Basically I am using a child theme as the default theme every time a new blog is created. In the wp-config.php file – I was calling define(‘WP_DEFAULT_THEME’, ‘confit-childtheme’); define( ‘TEMPLATEPATH’, ‘/public_html/wp-content/themes/confit’); I read that when you are using a child theme as the default install theme, you have to reference the parent theme folder. This … Read more

Pushing stored procedure to a multisite database in WordPress

Here are the Steps: STEP 01 : Put code in a Text File Open up a text editor (vi, nano, emacs) and place your code in it. Save it as /tmp/mynewcode.sql STEP 02 : Collect All Databases Names MYSQLCONN=`-uroot -ppassword` SQLSTMT=”SELECT schema_name FROM information_schema.schemata” SQLSTMT=”${SQLSTMT} WHERE schema_name NOT IN” SQLSTMT=”${SQLSTMT} (‘information_schema’,’performance_schema’,’mysql’)” mysql ${MYSQLCONN} -ANe”${SQLSTMT}” > … Read more

Jetpack API for WordPress Network

I answered my own question. The slash in the URL messes up the API call. However urlencoding the URL will get around it. IE: $context = stream_context_create( $options ); $site = urlencode(“subdomain.example.com/site1″); $response = file_get_contents( ‘https://public-api.wordpress.com/rest/v1/sites/’ . $site .”https://wordpress.stackexchange.com/”, false, $context );

Include only a domain path in multisite Network

Not exactly the answer you might hope for but is using a subdomain an option for you? www.mysite.com – your non WordPress installation blog.mysite.com – WordPress here Subdomains give you even more options like separate DNS entries so the WordPress installation could run on a different server.

Copy Root Multisite Site

Yes, it is possible. This is the feature I wrote during the last days for the pro version of Multilingual Press. One problem is that wp_upload_dir() does not always return the correct values after calling switch_to_blog(), that makes attachment copies unnecessary difficult. Besides that most things are simple. TRUNCATE the new blog’s tables and replace … Read more

Temp URL Redirect Loop

I assume IP stands for your IP address. In that case you are probably blocked by hostgator, as it can’t decide based only on the IP address which account is being accessed. in addition ~username is probably a URL that isn’t configured/accessible on the server. In other words, ask hostgator for support. Why do you … Read more

Multisite theme control not working

I believe you’re not seeing how themes work on MS setup. Enabling a theme via the MS settings makes it “network enabled”. This means it is now “allowed” to be used on all the network sites. If you don’t enabled it, network sites will not even have access to it. Network Enabled does not mean … Read more

error code: 521