Tag Info

New answers tagged

0

Simple, you don't separate anything because that is going to be terribly complicated. It is advisable to use the standard WordPress import export. See this tutorial: http://www.wpbeginner.com/wp-tutorials/how-to-move-a-site-from-wordpress-multisite-to-single-install/ However, your plugin and theme options will have to be re-set manually after the transfer. ...


0

It doesn't seem to be a WP Network main object for getting data from other sites in the Network i.e. $wp_network->site1->get_post_type('events'). I solved this using the automatically generated RSS feed for the custom post type. The feed is available on /[custom post slug]/feed How to read the data from other WP sites WP comes with SimplePie for easy RSS ...


0

I figured out what the problem was! Whenever I went to Settings > Domain Mapping under the Network Admin panel, I always got a message: "Domain mapping database table created." In fact, that database table was never created. The database user never had CREATE privileges. Once I granted CREATE to the user, I was able to get subdomain.example.com to point ...


0

In the DB, the wp_user_roles option in wp_options was empty. I copied the value from the same option in wp_2_options, as I had already added another blog. Also, every user from the original blog (it was up and running before being changed to a network) had nothing listed against both the wp_capabilities and wp_user_level options in wp_usermeta. Because of ...


0

If you need to separate users between child site then multisite is not the right solution for you. As for wp 4.1 (and this might change in the future) you can't have different users to different child sites, users are users for all childs site once they have been regitered to any of them.


0

I had the axact same problem. My solution: edited/etc/apache2/sites-enabled/000-default.conf. It needs to look like: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html <Directory /> Options FollowSymLinks AllowOverride all </Directory> ...


-1

I have a not "so better", but a solution. I've tried with your method with the following setup: Localhost, Using ISS Wordpress version 4.1 and to get the right url I changed the wp-config.php and added this line: define('WP_DEBUG', false); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'localhost'); ...


0

Have you tried including the wp-load.php file in your external script ? require_once("/path/to/wordpress/wp-load.php");


0

The solution for me was in the end very simple: within the Domain Mapping plugin referenced by Azizur's answer above, I added a new domain without the www and the same site ID as the www version. I unchecked primary. The result is two entries for the same site (in my case site ID 2), as follows: ID: 2 Domain: www.domain.com Primary: Yes ID: 2 Domain: ...


0

It's a good idea to search WP DEV before you post a new question: http://wordpress.stackexchange.com/search?q=migrate+multisite And Google is a good try, too: http://www.google.com/search?&q=move+single+site+to+multisite+wordpress The WordPress Codex is a good place to start: ...


0

One of these, or a combination of, may be what you're looking for: https://premium.wpmudev.org/project/site-categories/ (watch its video) has the functionality to put each site on a multisite within categories. However, your "network of networks" might best be served by http://wpebooks.com/networks/ Plus, it may be able to do the URL scheme you're wanting ...


0

It sounds like you're looking for https://wordpress.org/plugins/mu-global-terms/ Note a similar question was asked/answered at WordPress Multisite - global categories so that may help you out as well. Note: it wasn't clear if you wanted site.com/network1/category to also include posts from site.com/network2/category but that's a slightly different thing.


4

All you can do is bump the priority of your hook: add_action( 'wp_head', 'dns_prefetch', 0 /* Highest priority */ ); but does this put my code just after the start of tag? No, but it will output before any other function attached to wp_head i.e. other <link />'s, most stylesheets, plugin scripts etc. To put it right after <head> you'll ...


0

Well thers is no easy solution for your Question - to many unknown things involved e.g. how the plugins handel the permalink Some Ideas: use diffrent plugins wich support customizing permalinks (e.g actions / filters ) maybe customize - wp-admin/options-permalink.php take a look at http://codex.wordpress.org/Using_Permalinks permalinks&url rewrite ...


0

Here are the contents of a working example, placed in a php file in wp-includes/mu-plugins/. The email is sent when a user completes the password reset action after clicking the reset link in the email they receive. <?php if( ! function_exists( 'wp_password_change_notification' ) ){ function wp_password_change_notification( &$user ){ ...


0

This sounds like an error with the URLs that are defined in the multisite DB and/or a .htaccess issue. When changing a regular WP install from live to local for example, you can change the URLs by setting this in your wp-config: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); However with multisite there are additional ...


0

You can add NOBLOGREDIRECT to your wp-config.php. It redirects all non-existing subdomains to the defined link. define('NOBLOGREDIRECT', 'http://www.domain.com/');


0

It took me some time digging in the core and stack tracing to get my answer. The answer is no. It is not possible as mu plugins run before pluggable.php. Since this is a pluggable function it cannot properly handle the use of this function. An added bit of information is that you cannot use a pluggable function with wp_mail in a mu plugin as this would ...


0

The problem seems to be in the version of WordPress - specifically WordPress 4.1 while running MultiSite - I downgraded to 4.0.1 and all of the problems went away.


0

With add-on domain you probably mean a domain alias, right? Set your WP_HOME and WP_SITEURL to a dynamically value in your wp-config.php. This is how it's done, I use this code all the time it also will define some other constants. $root='public_html'; //Set this to the DocumentRoot. define('FTP_USER','<username>'); //Replace <username> with ...


0

*Added code that I created and tested from the dashboard on my sandbox site. It's below and it will send an email on user password update. You can edit the code anyway that you would like. Under the licensing GLP2 you are supposed to distribute the code with the same licensing as well. So if I make a WP Theme and distribute it, I am supposed to license my ...


0

It should work from a mu plugin as well. (The codex is not very accurate, it should also be possible to override this function from a theme)


0

If you're using Varnish and you're not seeing the admin bar it's because you probably have a rule in /etc/varnish/default.vcl that looks like this: sub vcl_recv { if (!(req.url ~ "wp-(login|admin)")) { unset req.http.cookie; } } That's going to keep the admin bar from showing up because you're dropping cookie stuff from all pages except ...


0

You can either use a powerful plugin such as Multisite Privacy by WPMUDEV, or you can use the following code which I developed for a project of my own. To use this code, either create a plugin with it that you only activate on the site to protect, or if that sounds too difficult, you can paste it into the theme's functions.php and wrap the add_action call ...


1

You have to check if PHP mail is working in your server or debug WP's mail, there are several ways to do this, I would first test if a basic PHP mail function works. The is as simple as running this from a PHP file or the command line: mail ('your@email.com', "Test", "Test mail from wordpress"); Find out what mail service is on your sever and debug it ...


0

If that is a share hosting account then you are most likely facing a wait time on PHP's mail() functionality. Have you access to an SMTP service? If so, have you hooked wordpress up to an SMTP server and tried to pass through emails this way? After you acquire SMTP access, you can use this plugin @ wordpress.org ...



Top 50 recent answers are included