Tag Info

Hot answers tagged

4

You have totally missed the naming convention when coming to the taxonomy archive pages, and most probably the same goes for your archive pages for your custom post types Here is how your taxonomy archive pages should look like taxonomy-{taxonomy}-{term}.php - If the taxonomy were sometax, and taxonomy's term were someterm WordPress would look for ...


2

blogs.dir isn't used for multisites created after WordPress 3.5. Instead everything exists in wp-content/uploads.


2

You'll need to tie into template_redirect hook where you will check the site and the user and then redirect if needed. function redirect_to_subsite() { if( is_main_site() && !current_user_can('manage_network') ) { $blog_id = 5; // <<----- Update the ID to the subsite blog ID you want to redirect to wp_redirect( ...


2

You can check existing user with "username_exists" WordPress function and insert user using "wp_insert_user" function as below for Network site also: if(username_exists( 'username' )) { echo "Username already exists"; } else { echo "Username does not exists"; $userdata = array( 'user_login' => 'username', 'user_url' => ...


1

You'll want to add these to your wp-config.php file: define( 'NOBLOGREDIRECT', '' ); define( 'WP_HOME', 'http://dev.domain.com' ); define( 'WP_SITEURL', 'http://dev.domain.com' ); So in its entirety, you'll have: $base = '/'; /** Multisite / Wordpress Network **/ define( 'WP_HOME', 'http://dev.domain.com' ); define( 'WP_SITEURL', ...


1

To get all blogs/subsites a user is registered to, use get_blogs_of_user() $sites = get_blogs_of_user( get_current_user_id() ); This will fetch all sites that aren't marked as archived, spam or deleted. This will as well work in a single site environment, returning a an array with a single numerical key that has a stdClass object as value: $sites = ...


1

In this case, I would suggest a server specifically for the database - a DB server. Server A & B could interact with it, and chances are, it would ease some of the tension and performance related issues with Server A.


1

There is a plugin for this: Join My Multisite Allow site admins to automatically add existing users to their site, or let users decide at the click a button. I don't know how important it is to you that the users don't know that they are in a multisite but the list of the plugin's options is very interesting: By activating this plugin, you give ...



Only top voted, non community-wiki answers of a minimum length are eligible