• Resolved q7048

    (@q7048)


    Under the Multiple Domain settings, is it possible to have several variables based on each domain such as contact telephone and email then display them on the frontend in a shortcode? E.g. [multiple_domain_phone] / [multiple_domain_email]

    Any help would be more than appreciated ??

    Best Wishes

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Yes, it’s possible, but you’d have to create those shortcodes yourself. Here you go an example:

    add_shortcode('multiple_domain_phone', 'custom_multiple_domain_phone_shortcode');
    function custom_multiple_domain_phone_shortcode() {
        if (MULTIPLE_DOMAIN_DOMAIN === "mydomain.com") {
            return "+1 888 555 5555";
        }
        if (MULTIPLE_DOMAIN_DOMAIN === "otherdomain.net") {
            return "+1 888 555 50000";
        }
        // One if per domain...
        return "";
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Create shortcode based on Multiple Domain settings’ is closed to new replies.