Check it like this inside your php
file:
if($_SERVER["HTTP_HOST"] == "product1.domain.com") { // check the current domain
// your shortcode here. use do_shortcode to display the shorcode
}
I can help better if you post the codes that handle the shortcode.
Related Posts:
- Checking if an attribute exists in a shortcode
- How to modify shortcode attributes with data from current post
- Input with spaces in Shortcode attributes overwritten by defaults
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- How do I apply style to each category of a list?
- Redirect to another page using contact form 7? [closed]
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- shortcode – multiple instances of same parameter name in one shortcode instance
- How can I replace content on site generated from plugin without changing plugin
- Rename Smart YouTube’s httpv back to http for all posts
- save short-code in my custom plugin settings problem missed something
- do_shortcodes() isn’t working
- Add a custom form on the post-new.php admin page
- Removing customise fields during plugin uninstallation
- Plugin Handle URL With Custom Theme
- Allow users of my plugin to define their own shortcode rather than use mine?
- Edit Yoast SEO breadcrumbs output [closed]
- What’s the best way to implement AJAX in WordPress?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- Translating long texts with html formatting
- Adding Shortcode to Text Widget
- How to put JQuery/Ajax inside shortcode?
- wordpress prevent multiple shortcodes
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Can someone please tell me what is wrong with my plugin?
- How would I go about creating a user ranked post popularity page?
- Anonymous Postings
- Trouble with editing template for “List category posts” plugin
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- WordPress function not being called from jQuery method
- AddToAny shortcode in the loop
- Disable woocommerce cookies and delete cart data automatically
- How to add an automatic refresh in WordPress for a Page/Post or an embedded OneDrive/Excel HTML Code?
- className not populating in custom block
- How to fix wrong attribute error for Visual Composer Grid Builder?
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Making a Template for a CPT created by a plugin
- Run plugins only on certain pages
- creating html reusable blocks via shortcodes
- Overide plugin files from child theme (/inc/ ) folder
- How to use site_url() in Elementor [closed]
- wp_generate_attachment_metadata is creating an empty array
- custom payment gateway in woocommerce failed to connect to remote api server
- add_shortcode is not working in plugin where others are working
- Single API call exposed via shortcode with params
- Display encrypted content on my website
- SEO Friendly URL on dynamic product page produced via shortcode
- Post category with counts been display like a menu
- Post custom Data value in The Events Calendar plugin [closed]
- Send reply with pre-prepared answers
- Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Save custom attributes of product in woocommerce
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Nested shortcode functions accessing variable
- Use of Templates in a Plugin
- Insert content of a post into another
- Why can’t I access my Intranet LDAPS with NADI?
- External Domain on WordPress Multisite
- In the archive widget, how do I sort in between two years?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- accessing wp.media api from a tinymce plugin
- creating a custom shop page display on archive woocommerce
- Creating shortcodes in plugin
- Visual Composer shortcode for child theme dir
- get_post_title is not working on homepage
- Some code in shortcode function being ignored
- Setup page on first login on multisite
- polylang + category/tag custom language link
- Anspress Customization: How to show logged in user votes on a single answer?
- Custom wordpress Theme and Plugin repository
- Automatic Updates Individual Plugins Not Working
- How do I make a child theme I made POST through a 3rd party plugin?
- How create Group Blogs based on user created Groups
- How to create a custom shortcode based on the layout?
- How to redirect users to their profile after they successfully edit their profile
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- Getting Theme element into plugins page editor in wp admin
- WordPress as web application base
- Unable to add TAB character to post?
- Customize The Events Calendar to Include an Option to Expand for More Events Listings
- plugin shortcode output
- URL rewrite of independent plugin?
- Plugin for users to create their own ads like Google Adsence
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- How to Create a shortcode to this php function
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Create shortcode to echo javascript
- Add category selection to custom post type (plugin)
- What is @Action in WordPress?
- changing posts layout in ultimate member profile plugin
- Custom Shortcode Broken in WordPress 3.1
- “No Add Button” for me to customize my WordPress with themes and pluggins