Hiding all posts/products/pages from a site based on a custom taxonomy/domain name

From the Codex for pre_get_posts: pre_get_posts cannot be used to alter the query for Page requests (page templates) because ‘is_page’, ‘is_singular’, ‘pagename’ and other properties (depending if pretty permalinks are used) are already set by the parse_query() method. See: Query Overview. The recommended way to alter the main query for page requests is to use … Read more

MU domain mapping without using a plugin

To be honest even after your Update: How may I fix the fact that the admin area preserves the original url when using the Domain Mapping plugin (the one with the sunrise.php)? I don’t quite understand whether you want to “Redirect administration pages to network’s original domain” or not. In any case, as per the … Read more