Check if current site ID and value exist in WPDB

Note that you should be able to map domains without 3rd party plugins. Here’s an untested suggestion for your callback in your current situation: global $wpdb; // Nothing to do if not multisite if( ! is_multisite() ) return; // Define the custom table $wpdb->dmtable = $wpdb->base_prefix . ‘domain_mapping’; // Check if the custom table exists … Read more

Sub-sub folders of WordPress Multisite subdirectory

In my opinion, you need a ‘Multi Network’, a many Multi-Sites Network. I build them here and there for different languages for one country, like domain.example/ domain.example/1-country/ domain.example/1-country/language-1/ domain.example/1-country/language-2/ domain.example/1-country/language-3/ domain.example/2-country/ domain.example/2-country/language-1/ domain.example/2-country/language-2/ The core of WordPress doesn’t support them and you need an enhancement. Ready to use is only possible with the help of … Read more

Multisite – One Site with multiple URLs

Short answer is – this is possible and easily achievable by using JJJ’s plugin https://wordpress.org/plugins/wp-multi-network/. Long answer is – WordPress allows for such structures to be created, but does require some hacking in order to make it right if you decide to do it manually. The original database structure of a multisite website is prepared … Read more

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