New answers tagged

0 votes

How to get full native language instead of iso?

Use this locale_get_display_name()
user avatar
0 votes

The wp_blogmeta table is not installed. Please run the network database upgrade

The URL to access the network database update is https://www.website.test/wp-admin/network/upgrade.php Or the location to where /wp-admin/ is installed plus /network/upgrade.php- as commenters have ...
user avatar
  • 1,080
0 votes

WordPress Multisite for multi-language

Just create a standard multisite using the sub-directories option and name your site with the appropriate language slug. Normally it would be : mysite.com/subsitename You could just do : mysite.com/en
user avatar
  • 11
1 vote

How to see which sites use my installed plugins (wordpress multisite)

You can do this in the shell using WP CLI: sites=$(wp site list --field=url) for url in $sites; do if wp plugin is-active "YOURPLUGINNAME" --url="${url}"; then echo &...
user avatar
  • 51.7k
0 votes

Wordpress Multisite login_redirect to primary blog and specific page based on role

I opted to create two functions - 1 to redirect the user based on their primary blog and then a second to redirect any attempt at accessing the /wp-admin/ (wordpress redirects users to admin on login) ...
user avatar
1 vote
Accepted

Adding hreflang tags automatically in WordPress subdirectory multisite

Alternatively we can set the hreflang as a site meta for each site: update_site_meta( 1, 'hreflang', 'x-default' ); update_site_meta( 3, 'hreflang', 'en-au' ); update_site_meta( 5, 'hreflang', 'en-gb' ...
user avatar
  • 63.9k
1 vote
Accepted

Programmatically creating site in a network

You're using $user_id = get_option( 'admin_email' ); and then using that $user_id. However, get_option( 'admin_email' ); returns an email address, not the int that wpmu_create_blog() expects. So your ...
user avatar
  • 10.2k
0 votes

How to clone homepage for multi region site?

Multisites don't have to be separate domains, they can be subfolders. You can have your root/original blog/site at / then put new sites at /es/ /fr/ etc etc. As for how you would copy your content to ...
user avatar
  • 51.7k

Top 50 recent answers are included