You can combine these two shortcodes into one by using a custom shortcode that includes both of them:
function custom_shortcode() {
$output="";
// Get the wpcode shortcode output
$wpcode_output = do_shortcode('[wpcode id="2658"]');
// Get the wpdiscuz_comments shortcode output
$wpdiscuz_output = do_shortcode('[wpdiscuz_comments]');
// Combine the two outputs into a single output
$output .= $wpcode_output . $wpdiscuz_output;
// Return the combined output
return $output;
}
add_shortcode('custom_shortcode', 'custom_shortcode');
Please note: The way to pass values to a shortcode can vary depending on the specific shortcode and the plugin or theme that provides it.
Related Posts:
- WordPress plugin shortcode not working
- the_excerpt and shortcodes
- How do I create a Shortcode that returns text if domain is .com, not .co.uk
- Remove specific shortcode from get_the_content()
- How to Output HTML tags in do_shortcode?
- Nested Shortcode Detection
- How to display html in a shortcode
- Custom form, shortcode, and submit handler
- Automatically add this attribute to the gallery shortcode
- Videos via the video shortcode are always 640px wide?
- Custom Shortcode and Button not Working after 3.9 update
- Hide Default Video Shortcode Controls on PageLoad
- shortcode not working [closed]
- Do not show child pages of child pages
- How to: How do I make my own shortcodes without plugins?
- Adding span tags within wp_list_pages list items
- Change font-size within a shortcode
- How can I show the Jetpack Subscriptions form in a page? [closed]
- getting values from a shortcode with an include
- How to make shortcode output display where I choose
- Add Shortcode to a Div or Header [closed]
- change wordpress gallery shortcode to slider
- How to change the page break numbering?
- Allow shortcode in the author bio textarea
- WordPress display image link in shortcode
- How do I combine my shortcodes?
- Bulk converting shortcodes to blocks with embeds
- How to add source code into wordpress post really?
- shortcode_atts – one URL variable not working
- stop shortcode stripping in category and archive pages
- Make shortcode’s Bootstrap CSS override the theme’s CSS, how?
- Enumeration Contact form using database table’s numbe of rows [closed]
- Change the default video shortcode
- How to use shortcode in js url
- How to add AJAX in a custom PHP function using Google sheets API
- Shortcode to show current post category with link
- How to register a user via modal after clicking a link in the shortcode?
- WordPress TinyMCE : Get value of popup button
- Freeze a shortcode in place?
- wp_editor in thickbox
- Complex Slider Shortcode Help
- Using _e() on text inside video tags prints that text, instead of only showing when html5 element is not supported
- How to use the same shortcode with different attribute values on same page
- Youtube shortcode
- WordPress messes up with data attributes in shortcode output
- Shortcode will not pass attribute through to my function [duplicate]
- WordPress post pagination continuous [duplicate]
- custom field value as shortcode parameter
- How to edit blog page in wordpress? there is no place to put shortcode
- How to transform WordPress user role code to WP shortcode?
- Slow page Loads When Using Dynamic Coding
- Can I use shortcodes in mail body
- Does short-code slow down my WordPress site?
- redirect if shortcode exists
- Query to list all galleries under a parent post?
- Adding the username into a URL to redirect to a specific page
- Shortcode Help Needed → attributes
- Video Shortcode & Video Poster Question
- How to use a nested shortcode to render the value of an attribute in parent shortcode
- ob_get_clean(); doesn’t return $value in shortcode?
- Ordering get_terms with ACF not displaying all terms
- Unique ID for WordPress shortcodes when used more than once on a page?
- Which wordpress function is the caption shortcode linked to?
- Content between shortcodes
- Parsing a shortcode through an author meta textfield
- Adding YouTube button to TinyMCE editor
- Shortcode strips formatting and returns at content top
- do_shortcode within a shortcode
- tiny_mce_before_init preventing custom shortcode icon appearing
- Custom Fields – Boolean Display of True/False to Yes/No
- Twitter bootstrap tabs
- jQuery Tabs in Shortcode API
- Using Shorcodes in Sharing Preview and Notifications Title from Post Title
- Echo Extra Shortcode HTML to wp_foot
- How can I use a plugin shortcode inside of a html form?
- Is the WP audio shortcode still relevant?
- Disable wpautop on Shortcode attributes
- If statement shortcode
- Shortcode PHP file for two conditions passed when do shortcode
- Shortcode not working when I output data from wpdb html table row
- update_metadata() appends shortcode data for every page refresh
- Gallery shortcode is empty but magically creates a gallery
- Add audio file to post using custom term meta field as link [closed]
- Display tags cloud from a specific category ID with a shortcode
- How to avoid one code multiple times instead do that through some function? Shortcode, but I think shortcode is not used in main theme’s core files?
- Shortcode appeared twice on page, one time before content, one time where it’s really called
- Get current category and place it in shortcode
- Modify Blog Module layout in Child theme
- Inserting a variable into a shortcode inside php
- How can I define the output of shortcode attribute value?
- Using shortcodes that wrap around code
- Shortcode for Admin Theme Option?
- Clarify: Enqueueing scripts within shortcode only loads in footer?
- What makes a placeholder resizable in Tinymce?
- How to scroll to a shortcode-generated anchor
- add post type pram to wp shortcode
- I have the query code but not the shortcode
- wordpress how to sort posts on custom data with plug-in “Search & Filter”
- How to reuse php templates as shortcodes?
- Shortcode attributes from meta query variables