In your case do_shortcode should do the trick.
If your shortcode is just like [my_shortcode]
then try echo do_shortcode( '[my_shortcode]' );
If you have opening and closing then echo do_shortcode( '[my_shortcode]Inner text[/my_shortcode]' );
Related Posts:
- Is there a way to parse shortcodes in PHP?
- Shortcode to insert
- Shortcode putting html such as
- Display sorting options dropdown when using WooCommerce product category shortcode
- Retrieve multiple values passed to a single attribute in a shortcode
- Export User Info to CSV from Front End
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Shortcode created to check language not works
- Using Echo in ShortCode – Stuck
- Add/echo div with Analytics-Code to function in functions.php
- Multiple do_shortcode($content) within one shortcode
- Adding Image Count to Multigallery
- My shortcode is showing up twice
- How can I default to all WordPress roles when parameter is not included in shortcode?
- WordPress menu deletes when trying to add a hook
- PHP contact form returns warning in text widget [closed]
- How to find the output of contact form 7 shortcode? [closed]
- How do i get (unique) page name?
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Can A Shortcode Get HTML/Text From Content And Return It Twice With Added HTML?
- Recent post display using shortcode
- Browser title script ignoring is_page /else conditional [closed]
- Need to turn this php into WP shortcode
- Making Quote Plugin more efficient
- How to limit the content coming from wordpress shortcodes?
- How can I get content inside one shortcode to another shortcode?
- custom shortcode will not display the wrapped content
- Create shortcodes within foreach loop (using array)
- Trigger popup in a php if/else statement
- Append HTML Using Shortcode
- How to output a PHP file values by shortcode?
- How to display data from custom table in wordpress phpmyadmin
- Creating own shortcode – echoeing php variable based on JS variable
- How create a Shortcode with hover and complex options
- Remove from shortcode
- Get URL from shortcode tag
- Only first shortcode gets executed
- echo something inside a shortcode
- Shortcode from a function not working
- Display Data in Table from External Database in WP using Shortcodes
- Is it possible to return content, and then also continue to do other things?
- anyway to put inside a $outprint=sprintf()
- Capitalize Shortcode Value on Output
- Why is my str_replace not working on short code submitted by front-end?
- Shortcode not staying inside div tag
- Line breaks inside shortcode variable
- Shortcode for Listing Users from Meta Value?
- Shortcode to pull posts
- Shortcode to log user into current URL
- Shortcode function doesnt work without caption
- Calling PHP Titles inside Javascript Markup
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Change Spaces to Dashes?
- Including Custom fields within the_content
- What is the difference between Null vs Empty (Zero Length) string?
- Show Featured Image Dimensions and size frontend with shortcode
- How to work Woocommerce pagination inside shortcode?
- using shortcodes inside gravity forms
- Display logged in user name and lastname on page
- Display Visual Composer shortcode if a post belongs in specific categories
- is it possible for a URL to filter by tag
- Trying to create a shortcode to display categories with a specific product tag
- How to pass parameters in wordpress shortcode?
- Replace background image with post thumbnail in shortcode
- How can I prevent a shortcode div from extending beyond its boundaries?
- Conditional formatting on data fetched from MYSQL
- Adding variable in WordPress shortcode
- Display a custom name when the user has no name settle in his account
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Execute Shortcode in Textfile
- custom taxonomies not working
- How to use Contact Form 7 shortcode value in a page?
- Display current user metadata on WordPress page
- Add Shortcode to ::before class
- Reload page with a different shortcode when a user selects from a dropdown
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- How to output values from a loop into a javascript array
- Shortcode’s output to use as other shortcode’s parameter
- Short code into PHP
- Add two or multiple functions in WordPress Post or Page
- Shortcode Works for Logged in Users but Not Working for Guest
- perform mathematical operation on shortcode
- Update same content in multiple posts at once?
- problem multisite with blog id
- Shortcode At top of Page – PHP 5.5 vs 5.4 – ob_start();
- Create dynamic content from one WP page to multiple other pages
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- Do_shortcode on PHP file outside theme ALMOST works
- Using the same shortcode to show any table from the database
- Shortcoding with Divs
- Custom Shortcode with Dynamic Button
- Whats wrong with my code? Need To add String to shortcode? [closed]
- Shortcode for Visual Composer Grid fails turning string to integer
- Is there a better way to output HTML as a shortcode?
- Display terms on product page with shotrcode
- Redirect loop upon installation of my plugin
- why css file not link?how to create permalink?
- Custom plugin with shortcode not working
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)
- Shortcode Displays 2 times