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
- similar of my posts in all over the internet sites and blogs [closed]
- What is difference between get_bloginfo(‘url’) and get_site_url()?
- Custom media upload content for inserting custom post shortcode
- Remote upload file to server B
- How Is Network Activate Different From Activate (by Implementation)?
- How to enable edit button in the theme’s customize UI?
- Shortcode output appears before post body [duplicate]
- Delete Post With No Traffic?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Generate custom output for page/URL in a plugin
- How to call shortcode function directly and pass $atts
- What’s the recommended process for organising collaborative posting?
- Plugin form unable to process
- Is there a plugin to display certain posts on certain pages? [closed]
- REST-API: extend media-endpoint
- How to make sexy bookmarks plugin work in WPMU
- register_post_status invisible but searchable
- I need some direction on how to have a sidebar based on meta rather than page
- Frontend editing, Frontend user dashboard
- Can’t get custom posts of taxonomy to show
- Can’t create term for product attribute
- WordPress and WebRTC?
- Getting Post details when post is published
- Pass variable to nested shortcode
- get shortcode value
- Plugin Customization Lost During Plugin Upgates
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Custom Field Template seriously messed up in WP 3.1.1
- Plugin upgrade issue
- Prevent shortcode from being wrapped in tags
- My plugin wants to update another plugin
- I have no idea “How change font for elements in widget?”
- Plugin Handle URL With Custom Theme
- What’s the best way to implement AJAX in WordPress?
- How to fix wrong attribute error for Visual Composer Grid Builder?
- Display encrypted content on my website
- Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working
- Save custom attributes of product in woocommerce
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Add category selection to custom post type (plugin)
- “No Add Button” for me to customize my WordPress with themes and pluggins
- Translation plugin to translate another plugins
- Shortcode to update user meta
- Deactivate JS Script in Plugin Shortcode
- Shortcode not working after move wordpress website files
- Contact Form 7 – Form name blank [closed]
- Customizing Titles on the Fly with Code
- Plugin that provides the [edit] shortcode?
- Text change in Advanced Customs Fields [closed]
- Return multiple values in a shortcode attribute
- How to change shortcode’s default theme?
- Is there a way to convert shortcodes to html content?
- Loop in elementor custom widget not working
- Historical customisations won’t go away [closed]
- .php file for woocommerce edit category? [closed]
- Loop returns the current page’s permalink and guid instead of the post in the loop
- How to display an alert when deleting a plugin?
- unregister a sidebar widget
- How to disable Wp-PageNavi at the top of the page
- 404 errors when updating options in admin dashboard
- Display WordPress comments before the plugins?
- Mobilepress fails to translate short codes
- woocommerce remove coupon link does not work
- Getting infinite scrolling working on my custom template
- Display posts by alphabetical order
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- Shortcode show error while editing post
- Precheck fields when I add a new post
- Get Shortcode output to database for static post_content
- Issue Saving Posts That Contain Shortcode
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- Custom wp_list_tables redirect on specfic page
- How to use plugin’s shortcode in custom design? [closed]
- Paid Membership Pro displaying a user name in PHP
- Automatically check “Enable stock management at product level” to the existing products?
- WP Plugin CSS not being applied to page
- Creating Nested custom fields
- Multiple calling javascript from shortcode in one page
- Find all strings between an enclosing shortcode
- How to display single arbitrary facebook post with a shortcode?
- Custom shortcode with dynamic rewrite
- apply_filters to content but ignore shortcodes
- Add a filter to a different custom plugin
- How to avoid conflict between plugin and its edited version?
- How to give different user access to different people?
- How to edit a non logged in page?