How to get all pages on specific blog after switch_to_blog?
Try using get_posts instead of get_pages $pages = get_posts( array( ‘order’ => ‘ASC’, ‘orderby’ => ‘ID’, ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ) );
Try using get_posts instead of get_pages $pages = get_posts( array( ‘order’ => ‘ASC’, ‘orderby’ => ‘ID’, ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ) );
Found a workaround, remove the user via PHPmyadmin, found in wp_user (find ID of user) and wp_usermeta (find meta info of user). Remove wp_capablities and wp_user_level from wp_usermeta and add the user again to your site via the WP backend. Somehow this reimported the user again and shows up in the user list this time. … Read more
I didn’t find an answer to above solution but I have something that works well enough for now. Put other pages I need to link to (“thank you” & “privacy”) is a folder inside the root name “n.” The end result are links that are good enough and not confusing to end users.
The short answer is no, Multisite uses the domain name to determine which site you are on, so there is no way to set up a Multisite site in a subfolder. Having said that, depending on what you want to achieve there’s often ways around it. For example, if you were ok with using a … Read more
I never got to the bottom of this. In the end I backed up the site with Updraft, reinstalled WordPress and restored everything from the backup.
Not tested…but should work. In your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ RewriteRule ^(/)?$ us [L] (and yes…make a copy of your original .htaccess before you muck with it!)
The problem was that the function itself was declared before the initialization of button that wasn’t working. So the replacing of button init before the function declaration resolved the issue.
I’ve built similar network sites and the Domain Mapping plugin works like a charm. The only catch is that your network hub (the original site) can’t be mapped to a different domain name, so keep that in mind when planning the sites/network.
This is exactly what multisite is for. It’s quite flexible and allows you to host multiple domains, sub-domains to various domains (or a single domain) or any combination of that. A common setup is to have a top level domain assigned to the network of sites (not absolutely required). I use it basically as a … Read more
In this case, I had to reset the some of the file permissions of the WP install to 775. The the fault was with the managed hosting provider having this problem with many of their multisite installs.