You want to use the do_shortcode()
function which allows the execution of shortcodes the same way that they run when used in the standard content areas.
<?php echo do_shortcode( '[WP-Coder id="4"]' ); ?>
If you need to get more complex you can read all about it here.
Related Posts:
- disable lightbox in a plugin [closed]
- similar of my posts in all over the internet sites and blogs [closed]
- How to implement a customizable free OpenID authentication?
- Difference between add_filter and apply_filters
- How Is Network Activate Different From Activate (by Implementation)?
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- How to delete the Hello Dolly plugin automatically?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Generate custom output for page/URL in a plugin
- Open external links in a new window
- How can I limit functionality in one version of a plugin?
- How to add usermeta to “Notice of Email Change” email message
- Any way to use a custom Parameter for youtube embed without using an iframe?
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- How can I rewrite a plugin generated URL?
- I need some direction on how to have a sidebar based on meta rather than page
- WordPress and WebRTC?
- Leveraging WordPress Comments on Custom Plugin Object page
- Debugging Technique Question re: functions.php
- Is there a way to alter the order in which the plugins appear in the page?
- Getting Post details when post is published
- How to check what plugins used to be on a WordPress installation?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- FacetWP group listings by custom field [closed]
- Plugin Customization Lost During Plugin Upgates
- Plugin upgrade issue
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to add a default value to get_option if it’s used as a variable?
- My plugin wants to update another plugin
- I have no idea “How change font for elements in widget?”
- How to show Recent Page instead of Post?
- What’s the best way to implement AJAX in WordPress?
- Overide plugin files from child theme (/inc/ ) folder
- Display encrypted content on my website
- Save custom attributes of product in woocommerce
- How do I make a child theme I made POST through a 3rd party plugin?
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- Add category selection to custom post type (plugin)
- changing posts layout in ultimate member profile plugin
- “No Add Button” for me to customize my WordPress with themes and pluggins
- Translation plugin to translate another plugins
- Contact Form 7 – Form name blank [closed]
- How do i get file_get_contents to work in wordpress
- Plugin Development – Functions or Hooks?
- Add some fileds to the wp_posts table
- Customizing Titles on the Fly with Code
- Text change in Advanced Customs Fields [closed]
- Loop in elementor custom widget not working
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Historical customisations won’t go away [closed]
- .php file for woocommerce edit category? [closed]
- How can i summerize posts or news automatically in word press site?
- Edit page header on a custom plugin
- How to display an alert when deleting a plugin?
- How to fix these PHP Warnings with the “Feed JSON” plug-in?
- unregister a sidebar widget
- Custom content plugin for front page in wordpress
- 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
- Give custom page template a custom post ID
- Display posts by alphabetical order
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- Precheck fields when I add a new post
- How can I add a custom Javascript snippet to display my feedback in footer?
- My wordpress local urls is still displayed even moved to live
- working code, not working – Plugin Dev
- Custom wp_list_tables redirect on specfic page
- Paid Membership Pro displaying a user name in PHP
- User upload dashboard
- WordPress panel is not loading after plugin activated with error: HTTP ERROR 500
- How to restrict the user from viewing comments but with option to write comments?
- Create dynamic / data driven pages in wordpress
- Automatically check “Enable stock management at product level” to the existing products?
- The etiquette of forking a plugin and table tag
- Creating Nested custom fields
- Confusing problem with displaying message recipient metadata
- Plugin does not create a custom table upon activation
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Plugin program: JQuery not working in this plugin
- admin panel save option with ajax
- Get page type to display content
- How to fix vanilla comments extra iframe space
- Add a filter to a different custom plugin
- Woocommerce quick checkout form [closed]
- How to add image for custom taxonomy
- Social network plugins for WordPress [closed]
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Wrapping code in an if block
- How to edit a non logged in page?
- How can I properly sanitize the update_option in WordPress?
- Create Custom Coupon Type
- Is website for online game guides doable in WordPress? [closed]
- Using ACF to allow user to add and edit multiple saved forms