How to use the “domain_exists()” function

domain_exists() is something you probably won´t call by yourself. It is used in the registration/creation process of new sites in a Multisite installation. There it´s used to check if a specific blog URL is already in use: if ( domain_exists($mydomain, $path, $current_site->id) ) $errors->add( ‘blogname’, __( ‘Sorry, that site already exists!’ ) ); (From /wp-includes/ms-functions.php, … Read more

Custom Post types and Custom fields in Multisite

If you place the CPT and fields code in a theme, each site in the network would be required to use that theme for the post type and custom fields to be available. If, however, you place that code in a plugin and network activate the plugin, every site in your network can use a … Read more

Using A Shared/Common Theme Across Multiple Sites

If you’re using multisite, you can upload a theme as the super admin and force enable it across the network. However, from what I’ve read in your question, it appears like you are trying to share contents across the network, not just the theme. This can be somehow tricky. In such scenarios, you can use … Read more

Create a network of blogs with WordPress 3

For setting up a network of sites on different domains use: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ Otto has a great tutorial on the subject: http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/ Andrea’s ebook and Otto’s tut helped me a lot with my first setup!

Redirect users on logout

you can use wp_logout_url( $redirect); as Pippin sugested if you are echoing out the logout link and if you need it for the built-in logout link on the backend you can use: //function to redirect after logout function logout_redirect765(){ wp_redirect( home_url() ); exit; } //hook function to wp_logout action add_action(‘wp_logout’,’logout_redirect765′);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)