I’m not sure I fully understand, but you can call
echo do_shortcode("[feature site="your-choice"]");
within the content-single.php file. If that isn’t enough, I suppose a function like this could be made:
function feature($size){
echo do_shortcode("[feature size="{$size}"]");
}
Related Posts:
- do_shortcode() doesn’t do shortcodes ;)
- Allow Shortcode in Theme Customizer
- Can I create customizer setting that can handle plugin shortcode?
- enqueue script for specific shortcode
- Why does my short code get executed before other content?
- Run shortcode before filters
- What is wrong with this code I have to make a blockquote shortcode
- Custom shortcodes not working using __s theme
- Place the page title into the short code
- How to provide support for [gallery] shortcode?
- Responsive embed for the video shortcode
- How to display all subpages and short by year
- do_shortcode() in twentyeleven theme
- How to Manually Code Shortcode?
- Extract all shortcode data from post into loop variables?
- Shortcode IF statment help
- Shortcode call not working in WP Template
- Shortcodes do not work in own template
- Pagination fuction in shortcode always displays on top
- How to use shortcode inside of shortcode in theme
- WordPress Shortcodes – Optional Styles
- Hide/disable sidebar using shortcode?
- wordpress script_loader_tag in function.php
- Theme does not allow shortcodes
- wordpress custom category post shortcode
- Avoiding do_shortcode() loops
- how to edit woocommerce checkout page
- TinyMCE strips content while pasting. Possibly a bug
- Passing a location-dependent array via wp_localize_script within a shortcode
- Problem using $var for shortcode attr value
- Multiple Content Shortcodes
- Onepage with shortcodes
- why my WordPress theme doesn’t support shortcode? [closed]
- Making update notification functionality for my themes
- Best practice for including plugins as part of a theme?
- Where do I find the functions triggered within a hook?
- Is it possible to display the admin bar while in the Theme Customizer?
- How to Change CSS Variable value in Theme Customizer Live Preview
- Pagination & get_pages?
- Custom nav menu is created with default pages, but not hooked to theme’s custom menu location
- Easy WordPress theme creation tutorial? [closed]
- How do I add a post to a menu
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- How to handle custom form submission?
- menu behavior is not as expected
- My custom theme does not load the translations
- Disable front-page.php template
- Gutenberg – editor-font-sizes in functions not working
- Same ACF on two different pages
- A mystery 300px image size
- Custom Field returning Numerical Value for Image rather than URL
- which is the best way to customize nav-menu-template.php?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Default string not appearing want to translate
- How to make a local cache of mshots images
- Why is the Page Template dropdown menu using the wrong file name?
- 2 localizations inside a WordPress theme
- Custom theme updater – random string in new theme name
- Child Theme’s style.css not loading in mobile browser
- How to Find the Page the Front Page is Using?
- My jQuery is enqueued properly. So why isn’t it working?
- Database Tables in WordPress Theme
- 3 Level Deep Navigation Menu Not Showing All Levels
- Broken theme, template is missing
- WordPress page/blog incorporated into static website
- wp_enqueue_script not working?
- Random white space before doctype
- Premium theme licensing of php called through AJAX
- is_single() works in plugin, not in theme?
- Do I need to create a child theme for JointsWP
- Issue on Accessing To Ajax Enqeued File to Pass to URL for Ajax Call
- pass wordpress template directory into ajax url call
- theme-independent CSS/JS files
- Custom jquery not code not working in wordpress
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Style first 3 posts differently with WP_Query [duplicate]
- is_front_page use in sidebar.php
- matisse theme show excerpts not whole content
- My custom taxonomies are not showing up in the admin menus
- How to add custom theme in hosting server?
- Infinite loop when nesting have_posts()
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- How to show children pages as array
- How do I keep images in posts below a certain size without editing the post?
- Theme options not displaying correctly after theme update
- Is it possible to customize the layout of Gallery Shortcode?
- How can i use archive.php for indexing wordpress default posts?
- What to do when child theme is out of date with parent theme
- Image Size wrong during upload
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- How can I add a single image from a gallery into the page header?
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]