WordPress self hosted site asking to login again when used www

Each subdomain requires separate authentication. Although you can leave your server set to allow both the “www.example.net” subdomain and the “root” domain “example.net”, you’ll run into issues both with authentication and with SEO, because Google also sees “www.example.net” as a different URL than “example.net”. It’s best practice to decide which version you prefer, then set … Read more

Display Different Content For Different Countries?

Since you will have same content for about and product detail page irrespective to its translated version. So, obviously you might face seo penalty. As recently, Google algorithm has clarified a clear cut instructions for ecommerce websites that they can’t use different pages for different languages or countries. So, for your case, I would suggest … Read more

Being Forced To Use Sub-Domains on Multisite

You should just start with a new install and import the existing site into the new install. Starting with an existing install triggers that warning but if you start fresh you can setup the subfolder structure. You can add this to functions.php to allow a subfolder install in multisite: add_filter( ‘allow_subdirectory_install’, create_function( ”, ‘return true;’ … Read more

Problem with parked domain for my mutisite

Merely pointing a domain at your site isn’t enough to make things work. What’s happening here: You have WordPress configured on the .com Traffic from the .ir domain is pointing at the same server WordPress doesn’t realize they’re the same thing and instead assumes you’re trying to set up a new blog on a multisite … Read more

wp_get_attachment_image_src on multisite

wp_get_attachment_image_src() function returns an array that’s why your code isn’t working. Try the following code. <a href=”https://wordpress.stackexchange.com/questions/295180/<?php echo esc_url( home_url(“https://wordpress.stackexchange.com/” ) ); ?>” rel=”home”> <?php if ( get_theme_mod( ‘bwpy_logo2’ ) ) : $img_data = wp_get_attachment_image_src( absint( get_theme_mod( ‘bwpy_logo2’ ) ) ); $img_url = isset( $img_data[0] ) ? $img_data[0] : ”; // Or you can try … Read more