🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Domain Name Autoswitch icon
Possibly abandoned Tested up to 3.9.40 #13 in front page

Domain Name Autoswitch

Here is a useful method you should use any where you need it dnas_get_post_ID().

Active installs10+10+ tier
Downloads · 30d130▼ -7.8% vs prev. 30d
Rating—0 reviews
Health score23/100At risk
All-time downloads3.4KSince Feb 2014
Support resolved—No recent threads
RequiresWP —PHP any
Downloads · 7d31▲ +14.8% week over week
Our verdict

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 & support

Daily downloads

369Sep 4Oct 18Dec 2
Yesterday6
Daily average (1y)4
Peak day12Sep 14, 2026
Last 12 months1.3K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Domain Name Autoswitch stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
front page >100 9,243 Best front page plugins →
Multi Domain Name >100 1,990 Best Multi Domain Name plugins →

Version adoption

Share of active sites per release.

  • 1.2100.0%

About Domain Name Autoswitch

From the official readme · v1.2.4

Description

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 .htaccess file,
    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

  1. First, unzip or upload the plugin into /wp-content/plugins/.
  2. In the plugin directory, edit the following file:
    sample-domain-name-autoswitch-config.php.
  3. Then, rename the config file to: domain-name-autoswitch-config.php.
  4. Activate the plugin through the WordPress Plugins admin page.
  5. Set up your domain names like you want to, directly through the
    posts’ edit pages.
  6. 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.

Full changelog on WordPress.org →

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.

Active installs badge Rating badge Health score badge

Best Domain Name Autoswitch alternatives

All front page plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Custom Front Page Custom Front Page Easily set any page or post, including custom post types, as the homepage for your site. by Micah Wood 900+ ★★★★★★★★★★ 4.4 (7) 6 years ago 37
2 Frontype | Select a custom post type as a front page Frontype | Select a custom post type as a front page It lets you set a custom post type as a front page. by Jose Mortellaro 300+ ★★★★★★★★★★ 4.5 (4) 2 months ago 71
3 Front Page Scheduler Front Page Scheduler Choose an alternate static front page to a specific daily period. by Ederson Peka 200+ ★★★★★★★★★★ 4.6 (9) 1 month ago 75
4 Front Page Custom Post Type Front Page Custom Post Type If you use custom post types, you may wish to display recent posts of a custom type in… by Nick Halsey 100+ ★★★★★★★★★★ 3.4 (5) 5 months ago 59
5 Black Studio Homepage Builder for Genesis Black Studio Homepage Builder for Genesis Customize the home page of Genesis framework child themes using Page Builder by SiteOrigin. by Black Studio 60+ ★★★★★★★★★★ 5 (1) 4 years ago 32
6 Front Page Builder Front Page Builder Easily build beautiful home pages. Easy to use with any theme. by Themes4WP 60+ ★★★★★★★★★★ 5 (1) 8 years ago 32
7 CPT on Front Page CPT on Front Page This plugin allows post types other than "page" to be displayed as the static front page. by fabrizim 30+ ★★★★★★★★★★ 5 (3) 13 years ago 31
8 Set Front Page Post Count Set Front Page Post Count Allows the front page to have a different number of posts than other pages. by Adam Harley (Kawauso) 20+ ★★★★★★★★★★ 5 (1) 15 years ago 31
9 Mooberry Show Latest Posts Mooberry Show Latest Posts Show latest blog posts on the static front page. Customize number of posts and display… by mooberrydreams 10+ ★★★★★★★★★★ 5 (1) 11 years ago 30
10 Organisation Frontpage Organisation Frontpage Permet de choisir et agencer les posts de la frontpage. by bgin 10+ ★★★★★★★★★★ No reviews 2 years ago 23

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

↑↓ to move↵ to open