WordPress multisite sharing menu having working current_menu_item class

Have fixed this problem by added a new class “current-site” on the menu. <?php $blogs = get_sites(); $current_site = get_current_blog_id(); foreach( $blogs as $b ){ //$b->blog_id) switch_to_blog($b->blog_id); if($current_site == $b->blog_id){ wp_nav_menu(array( ‘theme_location’=>’primary_menu’, ‘menu_class’=>’navbar current-site’, ‘container’ => false, ‘link_before’ => ‘<span class=”menu-wrap”>’, ‘link_after’=>'</span>’, ‘fallback_cb’ => false, ‘walker’ => new Walker_Nav_Pointers(), )); } else { wp_nav_menu(array( ‘theme_location’=>’primary_menu’, … Read more

Unique wordpress multisite requirement

You would do this by editing the site in the network admin, and setting the sites URL to subsite.main.domain, WP doesn’t force you to have everything as a direct subdomain, you could even put completelydifferentdomain.com as the URL and as long as your server is set up to route requests to WP from that domain … Read more

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