How to list WP multisite languages

Fix it by querying to wpml languages table. get all sites loop through the sites get blog ids. Query ICL languages table of each blog(each multi-site) Add into Array & play accordingly $blog_id == 1 condition used because the base site doesn’t have blog id prefix with table name Here is the function function getSitesLanguages() … Read more

How Access Multiple WordPress sites with a single login

In both wp-config.php files, change the following defines: define(‘COOKIE_DOMAIN’, ‘.test.oursite.com’); define(‘COOKIEHASH’, md5(‘test.oursite.com’)); to: define(‘COOKIE_DOMAIN’, ‘.oursite.com’); define(‘COOKIEHASH’, md5(‘oursite.com’)); Go to test.oursite.com/wp-admin/ and login as an administrator. Go to Users -> Your Profile and click on Update Profile button. Now go to forums.oursite.com/wp-admin/. You should be logged in there. If synchronization plugins in mu-plugins for both sites … Read more

How to create a network using a command line script?

Since you’re already using WP-CLI, I recommend you to use the wp core multisite-install command to set up your network installation. When you check out the documentation you’ll see that it’s pretty straightforward. Here’s the example from the docs: $ wp core multisite-install –title=”Welcome to the WordPress” \ > –admin_user=”admin” –admin_password=”password” \ > –admin_email=”[email protected]” Single … Read more

Changing path for media upload folder in wordpress multisite

This has been answered Hook filter to change wp_upload_dir() path in multisite , including code to hook into the upload_dir hook. Note that there is a setting in wp-config.php for the ‘base’ upload folder define(‘UPLOADS’, ‘wp-content/myimages’); So with this code, the uploads folder is wp-content/myimages. But, that changes the place WP looks for the media, … Read more

ERR_TOO_MANY_REDIRECTS IN MULTISITE NETWORK DASHBOARD

If you install your WordPress Multisite (wpms) from scratch on the server this issue should not arise. However, if you have installed your wpms on a local machine first and then moved/copied the entire installation including the database to your server, then you have to ensure that, you modify the domain in your database. I … Read more

error code: 521