New answers tagged

1

There's actually a function for that: get_active_blog_for_user() https://developer.wordpress.org/reference/functions/get_active_blog_for_user/ $user_id = get_current_user_id(); $user_blog = get_active_blog_for_user( $user_id ); echo $user_blog->siteurl;


0

You would probably want to use MultiDB for this: https://github.com/wpmudev/multi-db


0

user reset-password user1 user2 userN Will reset password and send email notification to the users. use --skip-email to not send an email. cf. https://developer.wordpress.org/cli/commands/user/reset-password/ If you want to reset the password for all users you can, first get list of all users , and then trigger the password-reset: wp user list --field=...


0

I'd like to mention one potential cause, which is rather obvious, but actually quite hard to detect: The use of disallowed characters in the path fraction of the sub-site URL. As stated in the WordPress Codex: Site Address: Only the characters a-z and 0-9 permitted. The usage of disallowed chars (f. ex. dots) in the subdirectory path makes the rewrite ...


0

I can't comment so I'm leaving this answer. As a follow up to the fantastic research done by @Borislav there is another SE thread that is related, with several potential fixes: Site Redirecting to wp-signup.php Ultimately, all the redirect issues with WordPress Multisite seem related to siteurl and home which even if properly hardcoded (e.g. using WP_HOME ...


1

I would just: Comment out the multisite code in wp-content Login again to WP Go back to settings and reading as if a single site. change http to https uncomment multisite code in wp-content Proceed as normal Done


0

Here's a few ways to spot it, but it depends on what access you have or how the site is set up, and won't spot that it's a multisite in all cases. If you have a login / access to the admin site, there's two ways I can see on the admin site the body tag will have class "multisite" (I think this is the only way here that you can say definitively 'not a ...


1

To handle the single domain, you'll want to obtain hosting that will run both your currently Azure-hosted site and WordPress. Usually Linux is the easiest way to go, though WP can run on IIS. You basically need to migrate the existing Azure-hosted site. Then, you can install WordPress in either a subdomain or a subfolder. If you want the two sites to appear ...


0

I'm adding to Baxter Jones's solution with a little more context with the original question. I manually changed the records in the options table for the fields 'siteurl' and 'home' from 127.0.0.1/wordpress to be http://dev.domain.com/. This worked for me after I made the other suggested changes for the wp-config file.


0

You can do it using Multi-Site install of WordPress (using sub-domains). Take a look at this for converting your current site to a multi-site: https://wordpress.org/support/article/create-a-network/ And this for using AffilateWP on a multi-site network: https://docs.affiliatewp.com/article/138-will-affiliatewp-work-on-a-multisite-installation As far as I ...


0

I am familiar with this situation ... I got out of it like this ... To begin with, in the .htaccess file that lies at the root of the site of your hosting provider - I registered it. At the very end of the file. # END WordPress RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?yoursite\.com$ [NC] RewriteCond %{HTTP:X-Forwarded-Proto} !=https RewriteRule ^(....


0

If you're changing settings using the WP Customizer then those changes are stored in the DB and you'd simply need to locate them, then paste them into the other DBs. This answer will help you locate them, even has a handy SQL script: https://wordpress.stackexchange.com/a/203227/60844


0

If you want easy solution, install Download Plugins and Themes from Dashboard plugin. Then you will able to download the theme. And you will able to install the theme any site you want. Manual way: After login to your hosting dashboard like cPanel, navigate to File Manager. Inside www directory, you will get wp-content directory, inside that, you will ...


Top 50 recent answers are included