Domain Name Autoswitch
Here is a useful method you should use any where you need it dnas_get_post_ID().
Consider an alternative
Domain Name Autoswitch shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 12 years ago, and scores 23/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- No update in 12 years
- Only tested up to WordPress 3.9 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Domain Name Autoswitch stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| front page | >100 |
| Multi Domain Name | >100 |
Version adoption
Share of active sites per release.
About Domain Name Autoswitch
From the official readme · v1.2.4Description
Here is a useful method you should use any where you need it dnas_get_post_ID().
It returns the post ID (if any) related to the current domain name.
For instance, if you would like to display URL of the fake home page:
You can check the plugin development on github.
Pros:
- since the plugin does not modify nor use your
.htaccessfile,
it works with every permalink formats. - allow you to manage your domain names directly through your
post edit forms.
Cons:
- since it hacks the query variables, some template tags like
is_home()
could not work as expected if a dedicated domain name is triggered. - be aware there is no conflict support: you can fill the same domain
for several posts. Only a single one will win the game, without
any control from your part (but it will be easy to see which one have
to be checked… if you ever notice it). Be careful!
Configuration
The plugin works with both custom post types and classic post type.
You have to edit a configuration file in order to indicate on which
posts the plugin should add its domain name field. You can indicate
Categorie identifiers or/and Post Types slugs. For instance, to make
the plugin showing its domain field on any posts of the categories #4
and #8, then:
$dnas_categories_ID = array( 4, 8 );
Dependency
The Advanced Custom Fields
plugin is required.
License
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2,
as published by Sam Hocevar. See (http://www.wtfpl.net/) for more details.
Installation
- First, unzip or upload the plugin into
/wp-content/plugins/. - In the plugin directory, edit the following file:
sample-domain-name-autoswitch-config.php. - Then, rename the config file to:
domain-name-autoswitch-config.php. - Activate the plugin through the WordPress Plugins admin page.
- Set up your domain names like you want to, directly through the
posts’ edit pages. - Obviously, you will have to set up your virtual hosts (
ServerAlias
directives), so every domain names you want to use are pointing to
your WordPress instance.
Changelog
1.2.4
- Fix the way settings are saved: from now, settings are not erased after upgrading the plugin.
1.2.3
- Fix SQL syntax when using custom post type identifiers.
- Add license details.
1.2.2
- Add the
dnas_get_post_ID()global function. - Enhance the readme.txt.
1.2.1
- Add the get_post_ID() method to the class.
- Fix an issue with permalink: now hooks the permalinks values.
For instance, the canonical meta link now displays the dedicated domain name. - Fix a singleton issue (public constructor).
1.2
- First stable release.
- Handle posts by categories or by post types.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Domain Name Autoswitch alternatives
All front page plugins →FAQ
Domain Name Autoswitch: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Domain Name Autoswitch free?
Yes. Domain Name Autoswitch is free to download and use from the official WordPress.org plugin directory.
Is Domain Name Autoswitch safe to use in 2026?
Domain Name Autoswitch shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 12 years ago, and scores 23/100 on our health check.
How many websites use Domain Name Autoswitch?
Domain Name Autoswitch is active on 10+ WordPress websites and has been downloaded 3,421 times since it launched in February 2014. It was downloaded 130 times in the last 30 days.
Does Domain Name Autoswitch work with WordPress 7.1?
Domain Name Autoswitch is officially tested up to WordPress 3.9.40, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Domain Name Autoswitch last updated?
The latest version, 1.2.4, was released on June 14, 2014 (12 years ago).
Who makes Domain Name Autoswitch?
Domain Name Autoswitch is developed and maintained by bmenant.
What are the best alternatives to Domain Name Autoswitch?
The most popular alternatives to Domain Name Autoswitch are Custom Front Page (900+ installs), Frontype (300+ installs) and Front Page Scheduler (200+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
